Peiyan commited on
Commit
755e336
·
verified ·
1 Parent(s): 149284b

Update deployment/docker/nginx.conf

Browse files
Files changed (1) hide show
  1. deployment/docker/nginx.conf +30 -16
deployment/docker/nginx.conf CHANGED
@@ -1,21 +1,35 @@
1
- user nginx;
2
- server {
3
- listen 80 default_server;
4
- server_name guardai.io www.guardai.io;
5
 
6
- root /usr/share/nginx/html;
7
- client_max_body_size 100M;
8
- proxy_read_timeout 600;
9
- proxy_connect_timeout 600;
10
- proxy_send_timeout 600;
11
- send_timeout 600;
12
 
13
- # proxy api requests to flask server
14
- location /api/ {
15
- proxy_pass http://127.0.0.1:5000/;
16
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
 
18
- location / {
19
- try_files $uri /index.html;
 
20
  }
21
  }
 
1
+ user root;
2
+ worker_processes 1;
 
 
3
 
4
+ events {
5
+ worker_connections 1024;
6
+ }
 
 
 
7
 
8
+ http {
9
+ include mime.types;
10
+ default_type application/octet-stream;
11
+
12
+ sendfile on;
13
+ keepalive_timeout 65;
14
+
15
+ server {
16
+ listen 80 default_server;
17
+ server_name guardai.io www.guardai.io;
18
+
19
+ root /usr/share/nginx/html;
20
+ client_max_body_size 100M;
21
+ proxy_read_timeout 600;
22
+ proxy_connect_timeout 600;
23
+ proxy_send_timeout 600;
24
+ send_timeout 600;
25
+
26
+ # proxy api requests to flask server
27
+ location /api/ {
28
+ proxy_pass http://127.0.0.1:5000/;
29
+ }
30
 
31
+ location / {
32
+ try_files $uri /index.html;
33
+ }
34
  }
35
  }