hamza82 commited on
Commit
3f38b3d
·
verified ·
1 Parent(s): 1dbf2ee

Update nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +19 -13
nginx.conf CHANGED
@@ -1,14 +1,23 @@
1
- events {}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
- http {
4
- server {
5
- listen 127.0.0.1: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;
@@ -19,7 +28,4 @@ http {
19
  proxy_cache_bypass $http_upgrade;
20
  }
21
 
22
-
23
-
24
- }
25
  }
 
1
+ server {
2
+ listen 7860 default_server;
3
+ listen [::]:7860 default_server;
4
+ location / {
5
+ root /usr/share/nginx/html;
6
+ index index.html index.htm;
7
+ try_files $uri $uri/ /index.html;
8
+ add_header Cross-Origin-Opener-Policy same-origin;
9
+ add_header Cross-Origin-Embedder-Policy require-corp;
10
+ add_header Cross-Origin-Resource-Policy cross-origin;
11
+ proxy_set_header Host $host;
12
+ proxy_set_header X-Real-IP $remote_addr;
13
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
14
+ proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
15
+ }
16
+ error_page 500 502 503 504 /50x.html;
17
+ location = /50x.html {
18
+ root /usr/share/nginx/html;
19
+ }
20
 
 
 
 
 
 
 
 
 
 
21
 
22
  location /custom-auth {
23
  proxy_pass http://localhost:8000;
 
28
  proxy_cache_bypass $http_upgrade;
29
  }
30
 
 
 
 
31
  }