epii-1 commited on
Commit
3638a31
·
1 Parent(s): a8aa3dd
Files changed (1) hide show
  1. nginx.conf +23 -3
nginx.conf CHANGED
@@ -22,14 +22,34 @@ http {
22
  listen 7860;
23
  server_name 0.0.0.0;
24
 
 
25
  location / {
26
- root /usr/share/nginx/html;
27
- index index.html index.htm;
28
- }
29
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  error_page 500 502 503 504 /50x.html;
31
  location = /50x.html {
32
  root /usr/share/nginx/html;
33
  }
34
  }
 
 
 
 
 
 
 
35
  }
 
22
  listen 7860;
23
  server_name 0.0.0.0;
24
 
25
+
26
  location / {
27
+ root /usr/share/nginx/html;
28
+ try_files $uri $uri/ /index.html;
29
+ }
30
 
31
+ location /api/ {
32
+ rewrite ^/api/(.*)$ /$1 break;
33
+ proxy_pass http://localhost:8009;
34
+ proxy_set_header Host $host;
35
+ proxy_set_header X-Real-IP $remote_addr;
36
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
37
+ proxy_set_header X-Forwarded-Proto $scheme;
38
+ }
39
+ location /tele-images/ {
40
+ proxy_pass http://localhost:8009;
41
+ proxy_set_header Host $host;
42
+ }
43
  error_page 500 502 503 504 /50x.html;
44
  location = /50x.html {
45
  root /usr/share/nginx/html;
46
  }
47
  }
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
  }