Update default.conf
Browse files- default.conf +13 -23
default.conf
CHANGED
@@ -1,27 +1,17 @@
|
|
1 |
server {
|
2 |
-
|
3 |
-
listen [::]:8080 default_server;
|
4 |
|
5 |
-
|
6 |
-
|
|
|
|
|
|
|
7 |
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
16 |
-
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
|
17 |
-
}
|
18 |
-
|
19 |
-
location /custom-auth {
|
20 |
-
proxy_pass http://localhost:8000;
|
21 |
-
proxy_http_version 1.1;
|
22 |
-
proxy_set_header Upgrade $http_upgrade;
|
23 |
-
proxy_set_header Connection 'upgrade';
|
24 |
-
proxy_set_header Host $host;
|
25 |
-
proxy_cache_bypass $http_upgrade;
|
26 |
-
}
|
27 |
}
|
|
|
1 |
server {
|
2 |
+
listen 8080;
|
|
|
3 |
|
4 |
+
location / {
|
5 |
+
root /usr/share/nginx/html;
|
6 |
+
index index.html index.htm;
|
7 |
+
try_files $uri $uri/ /index.html;
|
8 |
+
}
|
9 |
|
10 |
+
location /custom-auth/ {
|
11 |
+
proxy_pass http://localhost:8000;
|
12 |
+
proxy_set_header Host $host;
|
13 |
+
proxy_set_header X-Real-IP $remote_addr;
|
14 |
+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
15 |
+
proxy_set_header X-Forwarded-Proto $scheme;
|
16 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
}
|