1- #make sure that your dns has a cname set for stash
1+ ## Version 2024/10/18
2+ # make sure that your stash container is named stash
3+ # make sure that your dns has a cname set for stash
4+ # if stash is running in bridge mode and the container is named "stash", the below config should work as is
5+ # if not, replace the line "set $upstream_app stash;" with "set $upstream_app <containername>;"
6+ # or "set $upstream_app <HOSTIP>;" for host mode, HOSTIP being the IP address of stash
27
38server {
49 listen 443 ssl;
@@ -10,27 +15,15 @@ server {
1015
1116 client_max_body_size 0;
1217
13- # enable for ldap auth, fill in ldap details in ldap.conf
14- #include /config/nginx/ldap.conf;
15-
1618 location / {
17- # enable the next two lines for http auth
18- #auth_basic "Restricted";
19- #auth_basic_user_file /config/nginx/.htpasswd;
20-
21- # enable the next two lines for ldap auth
22- #auth_request /auth;
23- #error_page 401 =200 /login;
24-
2519 include /config/nginx/proxy.conf;
26- proxy_set_header Upgrade $http_upgrade;
27- proxy_set_header Connection "upgrade";
28- resolver 127.0.0.11 valid=30s;
20+ include /config/nginx/resolver.conf;
2921 set $upstream_app stash;
3022 set $upstream_port 9999;
3123 set $upstream_proto http;
3224 proxy_pass $upstream_proto://$upstream_app:$upstream_port;
33- proxy_set_header Host $http_host;
34- #proxy_read_timeout 60000s; #this need to be adjected in proxy.conf and not here
25+
26+ proxy_set_header Range $http_range;
27+ proxy_set_header If-Range $http_if_range;
3528 }
3629}
0 commit comments