@@ -8,28 +8,28 @@ server {
8
8
9
9
include /config/nginx/ssl.conf;
10
10
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;
15
15
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;
19
19
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;
23
23
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
+ }
35
35
}
0 commit comments