Peiyan commited on
Commit
2b5e88e
·
verified ·
1 Parent(s): 78e8583

Update deployment/docker/nginx.conf

Browse files
Files changed (1) hide show
  1. deployment/docker/nginx.conf +4 -11
deployment/docker/nginx.conf CHANGED
@@ -1,28 +1,21 @@
1
  server {
2
- listen 80 default_server;
3
- server_name guardai.io www.guardai.io;
4
 
5
- root /var/www/html;
6
  client_max_body_size 100M;
7
  proxy_read_timeout 600;
8
  proxy_connect_timeout 600;
9
  proxy_send_timeout 600;
10
  send_timeout 600;
11
 
12
- # Set custom log file paths
13
- error_log /var/log/nginx/error.log;
14
- access_log /var/log/nginx/access.log;
15
-
16
  # proxy api requests to flask server
17
  location /api/ {
18
  proxy_pass http://127.0.0.1:5000/;
19
- proxy_set_header Host $host;
20
- proxy_set_header X-Real-IP $remote_addr;
21
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
22
- proxy_set_header X-Forwarded-Proto $scheme;
23
  }
24
 
25
  location / {
26
  try_files $uri /index.html;
27
  }
28
  }
 
 
1
  server {
2
+ listen 80 default_server;
3
+ server_name guardai.io www.guardai.io;
4
 
5
+ root /usr/share/nginx/html;
6
  client_max_body_size 100M;
7
  proxy_read_timeout 600;
8
  proxy_connect_timeout 600;
9
  proxy_send_timeout 600;
10
  send_timeout 600;
11
 
 
 
 
 
12
  # proxy api requests to flask server
13
  location /api/ {
14
  proxy_pass http://127.0.0.1:5000/;
 
 
 
 
15
  }
16
 
17
  location / {
18
  try_files $uri /index.html;
19
  }
20
  }
21
+