Updates to project
All checks were successful
Deploy to production / build (push) Successful in 11s

This commit is contained in:
Sean Edmunds
2026-07-09 16:56:13 -05:00
parent 5df600381f
commit f14fee945b
4 changed files with 57 additions and 38 deletions

View File

@@ -4,33 +4,10 @@ server {
location /trigger {
auth_request /auth-1;
proxy_pass http://127.0.0.1:3000/trigger;
proxy_pass http://127.0.0.1:3000;
proxy_cache_valid 401 404 60s;
location /trigger/api {
proxy_pass http://127.0.0.1:5000;
}
location /trigger/assets {
proxy_pass http://127.0.0.1:3000/assets;
add_header Cache-Control "private, max-age=604800";
}
location /trigger/backgrounds {
proxy_pass http://127.0.0.1:3000/backgrounds;
add_header Cache-Control "private, max-age=604800";
}
}
location /favicon.ico {
rewrite ^/gun.jpg /trigger/favicon.ico redirect;
}
location ^~ /assets {
rewrite ^/assets/(.*) /trigger/assets/$1 redirect;
}
location ^~ /images {
rewrite ^/images/(.*) /trigger/images/$1 redirect;
}
location ^~ /backgrounds {
rewrite ^/backgrounds/(.*) /trigger/backgrounds/$1 redirect;
}
location ^~ /api {
rewrite ^/api/(.*) /trigger/api/$1 redirect;
}
}