2021-12-21 04:05:05 +08:00
|
|
|
server {
|
|
|
|
listen 8080;
|
|
|
|
server_name localhost;
|
|
|
|
|
2023-01-13 00:20:37 +08:00
|
|
|
root /app;
|
2024-11-15 07:53:07 +08:00
|
|
|
gzip_static on;
|
2024-11-15 16:19:45 +08:00
|
|
|
gzip_vary on;
|
2023-01-13 00:20:37 +08:00
|
|
|
|
2021-12-21 04:05:05 +08:00
|
|
|
location / {
|
2024-11-08 06:01:50 +08:00
|
|
|
try_files $uri $uri/ /index.html;
|
2024-11-15 07:53:07 +08:00
|
|
|
add_header Cache-Control "no-store, no-cache, must-revalidate";
|
2021-12-21 04:05:05 +08:00
|
|
|
}
|
2023-01-13 00:20:37 +08:00
|
|
|
|
|
|
|
# assets can be cached because they have hashed filenames
|
|
|
|
location /assets {
|
2024-11-15 07:53:07 +08:00
|
|
|
add_header Cache-Control "public, immutable, max-age=31536000";
|
2023-01-13 00:20:37 +08:00
|
|
|
}
|
2023-09-06 20:59:37 +08:00
|
|
|
|
|
|
|
location /apple-app-site-association {
|
|
|
|
default_type application/json;
|
|
|
|
}
|
2021-12-21 04:05:05 +08:00
|
|
|
}
|
|
|
|
|