Update nginx.conf
Browse files- nginx.conf +20 -28
nginx.conf
CHANGED
@@ -1,33 +1,25 @@
|
|
1 |
-
|
2 |
-
listen 8080 default_server;
|
3 |
-
listen [::]:8080 default_server;
|
4 |
|
5 |
-
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
|
17 |
-
}
|
18 |
|
19 |
-
error_page 500 502 503 504 /50x.html;
|
20 |
-
location = /50x.html {
|
21 |
-
root /usr/share/nginx/html;
|
22 |
-
}
|
23 |
|
24 |
-
|
25 |
-
|
26 |
-
proxy_pass http://localhost:8000;
|
27 |
-
proxy_http_version 1.1;
|
28 |
-
proxy_set_header Upgrade $http_upgrade;
|
29 |
-
proxy_set_header Connection 'upgrade';
|
30 |
-
proxy_set_header Host $host;
|
31 |
-
proxy_cache_bypass $http_upgrade;
|
32 |
-
}
|
33 |
}
|
|
|
1 |
+
events {}
|
|
|
|
|
2 |
|
3 |
+
http {
|
4 |
+
server {
|
5 |
+
listen 8080;
|
6 |
+
root /usr/share/nginx/html;
|
7 |
+
index index.html index.htm;
|
8 |
+
location / {
|
9 |
+
|
10 |
+
try_files $uri $uri/ /index.html;
|
11 |
+
}
|
12 |
|
13 |
+
location /custom-auth {
|
14 |
+
proxy_pass http://localhost:8000;
|
15 |
+
proxy_http_version 1.1;
|
16 |
+
proxy_set_header Upgrade $http_upgrade;
|
17 |
+
proxy_set_header Connection 'upgrade';
|
18 |
+
proxy_set_header Host $host;
|
19 |
+
proxy_cache_bypass $http_upgrade;
|
20 |
+
}
|
|
|
|
|
21 |
|
|
|
|
|
|
|
|
|
22 |
|
23 |
+
|
24 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
}
|