Skip to content

Commit bbdc0b4

Browse files
committed
More spacing
1 parent 602f01f commit bbdc0b4

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

codimd.subdomain.conf.sample

+21-21
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,28 @@ server {
88

99
include /config/nginx/ssl.conf;
1010

11-
location / {
12-
# enable the next two lines for http auth
13-
#auth_basic "Restricted";
14-
#auth_basic_user_file /config/nginx/.htpasswd;
11+
location / {
12+
# enable the next two lines for http auth
13+
#auth_basic "Restricted";
14+
#auth_basic_user_file /config/nginx/.htpasswd;
1515

16-
# enable the next two lines for ldap auth
17-
#auth_request /auth;
18-
#error_page 401 =200 /login;
16+
# enable the next two lines for ldap auth
17+
#auth_request /auth;
18+
#error_page 401 =200 /login;
1919

20-
resolver 127.0.0.11 valid=30s;
21-
set $upstream_codimd codimd;
22-
proxy_pass http://$upstream_codimd:3000;
20+
resolver 127.0.0.11 valid=30s;
21+
set $upstream_codimd codimd;
22+
proxy_pass http://$upstream_codimd:3000;
2323

24-
proxy_set_header X-Real-IP $remote_addr;
25-
proxy_set_header Host $http_host;
26-
proxy_set_header X-NginX-Proxy true;
27-
proxy_set_header Upgrade $http_upgrade;
28-
proxy_set_header Connection "upgrade";
29-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
30-
proxy_set_header Host $host;
31-
proxy_http_version 1.1;
32-
proxy_cache_bypass $http_upgrade;
33-
proxy_redirect off;
34-
}
24+
proxy_set_header X-Real-IP $remote_addr;
25+
proxy_set_header Host $http_host;
26+
proxy_set_header X-NginX-Proxy true;
27+
proxy_set_header Upgrade $http_upgrade;
28+
proxy_set_header Connection "upgrade";
29+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
30+
proxy_set_header Host $host;
31+
proxy_http_version 1.1;
32+
proxy_cache_bypass $http_upgrade;
33+
proxy_redirect off;
34+
}
3535
}

0 commit comments

Comments
 (0)