Merge pull request #31 from privatevoid-net/staging

VEGAS/websites: add back custom Soda error pages
This commit is contained in:
Max Headroom 2022-08-28 22:36:00 +02:00 committed by GitHub
commit 648e488f6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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";