gauthamnairy commited on
Commit
90f1b53
·
verified ·
1 Parent(s): 4af04ec

Update nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +7 -8
nginx.conf CHANGED
@@ -2,17 +2,16 @@ server {
2
  listen 7860;
3
  server_name localhost;
4
 
5
- location / {
6
- root /app/frontend;
7
- index index.html;
8
- try_files $uri $uri/ =404;
9
- }
10
-
11
  location /api/ {
12
- proxy_pass http://localhost:8000/api/;
13
  proxy_set_header Host $host;
14
  proxy_set_header X-Real-IP $remote_addr;
15
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
16
  proxy_set_header X-Forwarded-Proto $scheme;
17
  }
18
- }
 
 
 
 
 
 
2
  listen 7860;
3
  server_name localhost;
4
 
 
 
 
 
 
 
5
  location /api/ {
6
+ proxy_pass http://backend:8000/api/;
7
  proxy_set_header Host $host;
8
  proxy_set_header X-Real-IP $remote_addr;
9
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
10
  proxy_set_header X-Forwarded-Proto $scheme;
11
  }
12
+
13
+ location / {
14
+ root /app/frontend;
15
+ try_files $uri $uri/ /index.html;
16
+ }
17
+ }