This commit is contained in:
Baobhan Sith
2025-04-24 19:53:10 +08:00
parent 2f0b872264
commit a930f43477
14 changed files with 237 additions and 10 deletions
+20
View File
@@ -0,0 +1,20 @@
server {
listen 80;
server_name localhost;
# Root directory for static files
root /usr/share/nginx/html;
index index.html index.htm;
# Serve static files directly
location / {
try_files $uri $uri/ /index.html;
}
# Optional: Add headers for caching, security, etc.
# Example: Cache assets aggressively
location ~* \.(?:css|js|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
expires 1y;
add_header Cache-Control "public";
}
}