From 6ba37ae302211f93a6421e3025bcfd6fd06f7d82 Mon Sep 17 00:00:00 2001 From: DrunkBatya Date: Fri, 23 Jun 2023 11:35:03 -0400 Subject: [PATCH] Fix locations --- nginx.conf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } }