1
0
Fork 0

anonymous-overflow: Serve /static via nginx

This commit is contained in:
Daniel Kempkens 2023-02-16 00:59:20 +01:00
parent c9cb1639b4
commit 1177605b6c
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -52,11 +52,16 @@ in
forceSSL = false;
enableACME = false;
basicAuthFile = config.age.secrets.anonymous-overflow-auth.path;
locations."/" = {
basicAuthFile = config.age.secrets.anonymous-overflow-auth.path;
tryFiles = "$uri @proxy";
};
locations."/static".extraConfig = ''
rewrite ^/static(/.*)$ $1 last;
'';
locations."@proxy" = {
recommendedProxySettings = true;
proxyPass = "http://127.0.0.1:8003";