Skip to content

Commit e289c25

Browse files
Create stash.subdomain.conf
1 parent abdd349 commit e289c25

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

stash.subdomain.conf

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#make sure that your dns has a cname set for stash
2+
3+
server {
4+
listen 443 ssl;
5+
listen [::]:443 ssl;
6+
7+
server_name stash.*;
8+
9+
include /config/nginx/ssl.conf;
10+
11+
client_max_body_size 0;
12+
13+
# enable for ldap auth, fill in ldap details in ldap.conf
14+
#include /config/nginx/ldap.conf;
15+
16+
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+
25+
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;
29+
set $upstream_app stash;
30+
set $upstream_port 9999;
31+
set $upstream_proto http;
32+
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
35+
}
36+
}

0 commit comments

Comments
 (0)