Add static deployment build and guide

This commit is contained in:
Jacky Ser
2026-08-11 17:37:11 +08:00
parent 775ccf82ab
commit 42c21dd024
11 changed files with 168 additions and 2 deletions

17
deploy/nginx-static.conf Normal file
View File

@@ -0,0 +1,17 @@
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location ~* \.(?:js|css|png|jpg|jpeg|webp|gif|svg|ico|woff2)$ {
try_files $uri =404;
expires 1d;
add_header Cache-Control "public, max-age=86400";
}
}