Azeez98 commited on
Commit
3619fe3
·
verified ·
1 Parent(s): 4611af7

Update nginx/default.conf

Browse files
Files changed (1) hide show
  1. nginx/default.conf +10 -4
nginx/default.conf CHANGED
@@ -3,10 +3,16 @@ server {
3
  server_name localhost;
4
 
5
  location / {
6
- proxy_pass http://127.0.0.1:7860;
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
- }
 
 
 
 
 
 
 
 
 
3
  server_name localhost;
4
 
5
  location / {
6
+ proxy_pass http://localhost:7860;
7
  proxy_set_header Host $host;
8
  proxy_set_header X-Real-IP $remote_addr;
 
 
9
  }
10
+
11
+ location /static/ {
12
+ alias /app/static/;
13
+ }
14
+
15
+ location /media/ {
16
+ alias /app/media/;
17
+ }
18
+ }