anonymous-overflow: Serve /static via nginx
This commit is contained in:
parent
c9cb1639b4
commit
1177605b6c
1 changed files with 6 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue