From 77c82e2d9c76eb074dbfa5e637678b0da0631bec Mon Sep 17 00:00:00 2001 From: Samuel Pastva Date: Fri, 17 Nov 2023 09:15:34 +0100 Subject: [PATCH] Redirect all frontend requests to `index.html`. --- frontend/nginx.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/nginx.conf b/frontend/nginx.conf index de600f1..cf11a2a 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -5,12 +5,14 @@ events { http { server { listen 80; - server_name bbm.unsigned-short.com; + #server_name bbm.unsigned-short.com; root /www; location / { include /etc/nginx/mime.types; + index /index.html; + try_files $uri $uri/ /index.html =404; } } }