service/webserver: migrate nginx to caddy

This commit is contained in:
Felix Buehler 2025-01-26 00:34:16 +01:00
parent 13470f55e4
commit 589714db4b
34 changed files with 347 additions and 688 deletions

View file

@ -85,24 +85,10 @@ in
];
};
my.services.nginx.virtualHosts = [
my.services.webserver.virtualHosts = [
{
subdomain = "photos";
inherit (cfg) port;
extraConfig = {
locations."/" = {
proxyWebsockets = true;
extraConfig = ''
# Allow large file uploads
client_max_body_size 1G;
# Configure timeout
proxy_read_timeout 600s;
proxy_send_timeout 600s;
send_timeout 600s;
'';
};
};
}
];