From 478b1f5b75205f8e5a4e9a0a706c92f64f87807c Mon Sep 17 00:00:00 2001 From: Greg Date: Sun, 25 May 2025 16:51:00 +0200 Subject: [PATCH] Add nginx.conf for proper static site serving --- nginx.conf | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 nginx.conf diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..3585899 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,17 @@ +server { + listen 80; + server_name _; # Listen for any server name + + root /usr/share/nginx/html; + index index.html index.htm; + + location / { + try_files $uri $uri/ /index.html; + } + + # Optional: You can add custom error pages if you create them in your 'static' folder + # error_page 404 /404.html; + # location = /404.html { + # internal; + # } +}