Add nginx.conf for proper static site serving

This commit is contained in:
Greg 2025-05-25 16:51:00 +02:00
parent 77bf755a37
commit 478b1f5b75

17
nginx.conf Normal file
View File

@ -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;
# }
}