Spaces:
Runtime error
Runtime error
user root; | |
worker_processes 1; | |
pid /run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; | |
sendfile on; | |
keepalive_timeout 65; | |
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | |
'$status $body_bytes_sent "$http_referer" ' | |
'"$http_user_agent" "$http_x_forwarded_for"'; | |
access_log /var/log/nginx/access.log main; | |
error_log /var/log/nginx/error.log; | |
server { | |
listen 8080 default_server; | |
server_name guardai.io www.guardai.io; | |
root /usr/share/nginx/html; | |
client_max_body_size 100M; | |
proxy_read_timeout 600; | |
proxy_connect_timeout 600; | |
proxy_send_timeout 600; | |
send_timeout 600; | |
# proxy api requests to flask server | |
location /api/ { | |
proxy_pass http://127.0.0.1:5000/; | |
} | |
location / { | |
try_files $uri /index.html; | |
} | |
} | |
} | |