跑通本地Web测试,准备服务端部署

This commit is contained in:
moyin
2025-12-06 17:12:24 +08:00
parent 9e0b559c05
commit fe82d8f267
59 changed files with 3114 additions and 4889 deletions

View File

@@ -75,6 +75,19 @@ http {
index index.html;
try_files $uri $uri/ /index.html;
# Godot specific file types
location ~* \.(wasm)$ {
types { application/wasm wasm; }
expires 1y;
add_header Cache-Control "public, immutable";
}
location ~* \.(pck)$ {
types { application/octet-stream pck; }
expires 1y;
add_header Cache-Control "public, immutable";
}
# Cache static assets
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
expires 1y;