element-call-Github/config/nginx.conf

24 lines
520 B
Nginx Configuration File
Raw Permalink Normal View History

server {
listen 8080;
server_name localhost;
2023-01-13 00:20:37 +08:00
root /app;
gzip_static on;
gzip_vary on;
2023-01-13 00:20:37 +08:00
location / {
2024-11-08 06:01:50 +08:00
try_files $uri $uri/ /index.html;
add_header Cache-Control "public, max-age=30, stale-while-revalidate=30";
}
2023-01-13 00:20:37 +08:00
# assets can be cached because they have hashed filenames
location /assets {
add_header Cache-Control "public, immutable, max-age=31536000";
2023-01-13 00:20:37 +08:00
}
location /apple-app-site-association {
default_type application/json;
}
}