This commit is contained in:
Tristan 2024-02-17 13:16:23 +00:00
parent da37f1f222
commit 128cab7e41
3 changed files with 23 additions and 0 deletions

View file

@ -154,6 +154,23 @@ in {
'';
};
};
"movies.tristans.cloud" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:8096";
proxyWebsockets = true;
extraConfig = ''
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Protocol $scheme;
proxy_set_header X-Forwarded-Host $http_host;
proxy_buffering off;
'';
};
};
};
};
security.acme = {