Merge pull request #31 from privatevoid-net/staging
VEGAS/websites: add back custom Soda error pages
This commit is contained in:
commit
648e488f6f
1 changed files with 6 additions and 2 deletions
|
@ -1,11 +1,15 @@
|
||||||
{ packages, tools }:
|
{ packages, tools }:
|
||||||
with tools.vhosts;
|
with tools.vhosts;
|
||||||
let inherit (tools) domain; in
|
|
||||||
{
|
{
|
||||||
# websites
|
# websites
|
||||||
ktp = static "/srv/storage/www/soda/ktp";
|
ktp = static "/srv/storage/www/soda/ktp";
|
||||||
legacy = static "/srv/storage/www/legacy";
|
legacy = static "/srv/storage/www/legacy";
|
||||||
soda = static "/srv/storage/www/soda"; # TODO: add back custom error pages, wttr.in cache
|
soda = static "/srv/storage/www/soda" // {
|
||||||
|
extraConfig = ''
|
||||||
|
error_page 404 /.nginx-private/404.html;
|
||||||
|
error_page 500 502 503 504 /.nginx-private/50x.html;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
# content delivery
|
# content delivery
|
||||||
autoconfig = static "/srv/storage/www/autoconfig";
|
autoconfig = static "/srv/storage/www/autoconfig";
|
||||||
|
|
Loading…
Reference in a new issue