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