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;
|
forceSSL = false;
|
||||||
enableACME = false;
|
enableACME = false;
|
||||||
|
|
||||||
locations."/" = {
|
|
||||||
basicAuthFile = config.age.secrets.anonymous-overflow-auth.path;
|
basicAuthFile = config.age.secrets.anonymous-overflow-auth.path;
|
||||||
|
|
||||||
|
locations."/" = {
|
||||||
tryFiles = "$uri @proxy";
|
tryFiles = "$uri @proxy";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
locations."/static".extraConfig = ''
|
||||||
|
rewrite ^/static(/.*)$ $1 last;
|
||||||
|
'';
|
||||||
|
|
||||||
locations."@proxy" = {
|
locations."@proxy" = {
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
proxyPass = "http://127.0.0.1:8003";
|
proxyPass = "http://127.0.0.1:8003";
|
||||||
|
|
Loading…
Reference in a new issue