allow access to files without auth

This commit is contained in:
Kopatz
2025-05-31 13:32:31 +02:00
parent e2f799314f
commit 2fd1abd987
2 changed files with 13 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ in {
quic = cfg.https;
http3 = cfg.https;
locations = {
"~* \\.(jpg|png)$".extraConfig = ''
"~* ^/assets/.*\\.(jpg|png)$".extraConfig = ''
add_header Access-Control-Allow-Origin *;
'';
"/stash" = {
@@ -70,6 +70,17 @@ in {
proxy_pass http://localhost:7777;
'';
};
"/stash/files" = {
extraConfig = ''
proxy_redirect off;
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-NginX-Proxy true;
proxy_pass http://localhost:7777;
'';
};
"/tracker-site" = {
tryFiles = "$uri $uri/ /tracker-site/index.html =404";
};