improve web server

This commit is contained in:
nora 2024-08-05 20:24:32 +02:00
parent fca0d6d3f4
commit 67c6a7f9a0
3 changed files with 9 additions and 1 deletions

View file

@ -31,19 +31,23 @@ www.noratrieb.dev {
}
uptime.noratrieb.dev {
encode zstd gzip
reverse_proxy * localhost:5010
}
hugo-chat.noratrieb.dev {
encode zstd gzip
reverse_proxy * localhost:5002
}
api.hugo-chat.noratrieb.dev {
import cors https://hugo-chat.noratrieb.dev "DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type"
encode zstd gzip
reverse_proxy * localhost:5001
}
bisect-rustc.noratrieb.dev {
encode zstd gzip
reverse_proxy * localhost:5005
}

View file

@ -14,6 +14,8 @@
}
${config.networking.hostName}.infra.noratrieb.dev {
encode zstd gzip
header -Last-Modified
root * ${./debugging-page}
file_server
}
@ -22,6 +24,8 @@
if name == "vps1" then
builtins.readFile ./Caddyfile + ''
noratrieb.dev {
encode zstd gzip
header -Last-Modified
root * ${website {inherit pkgs slides blog;}}
file_server
}