Files
pleno-vue/nginx.coolify-frontend.conf
T

38 lines
913 B
Plaintext

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location = /release-entry.json {
add_header Cache-Control "no-store";
try_files $uri =404;
}
location = /internal/frontend/release-entry.json {
add_header Cache-Control "no-store";
try_files /release-entry.json =404;
}
location /assets/ {
add_header Cache-Control "public, max-age=31536000, immutable";
try_files $uri =404;
}
location ^~ /internal/frontend/assets/ {
add_header Cache-Control "public, max-age=31536000, immutable";
rewrite ^/internal/frontend/(.*)$ /$1 break;
try_files $uri =404;
}
location ^~ /internal/frontend/ {
rewrite ^/internal/frontend/(.*)$ /$1 break;
try_files $uri $uri/ /index.html;
}
location / {
try_files $uri $uri/ /index.html;
}
}