diff --git a/nginx.conf b/nginx.conf index 653fb78..0ef2f2b 100644 --- a/nginx.conf +++ b/nginx.conf @@ -14,14 +14,16 @@ http { default_type application/octet-stream; access_log off; keepalive_timeout 65; + root /static; server { listen 80 default_server; location /webhook { proxy_pass http://127.0.0.1:5000; } - location / { - root /static; + location = / { index index.html; + } + location / { try_files $uri $uri.html $uri/ =404; } }