Spaces:
Runtime error
Runtime error
Update deployment/docker/nginx.conf
Browse files- deployment/docker/nginx.conf +20 -2
deployment/docker/nginx.conf
CHANGED
@@ -12,6 +12,24 @@ http {
|
|
12 |
sendfile on;
|
13 |
keepalive_timeout 65;
|
14 |
|
15 |
-
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
}
|
|
|
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 |
}
|