Fix nginx: add text/javascript to sub_filter_types for GrampsWeb subpath rewriting (STI-91)
Some checks failed
CI/CD Pipeline / test (push) Has been cancelled
CI/CD Pipeline / deploy (push) Has been cancelled
Code Quality / quality (push) Has been cancelled

GrampsWeb serves JS files with Content-Type text/javascript, but nginx
sub_filter_types only listed application/javascript. This caused JS bundles
to pass through without path rewriting, resulting in API calls going to
/api/ instead of /ahnenforschung/api/ (404 errors on login).

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
SysAdmin Agent
2026-04-04 22:05:42 +00:00
parent 8d72f1f12f
commit 3c7c472e64

View File

@@ -99,7 +99,7 @@ server {
proxy_set_header Accept-Encoding "";
# Apply sub_filter to HTML, JS, and CSS responses
sub_filter_types application/javascript text/css;
sub_filter_types application/javascript text/javascript text/css;
sub_filter_once off;
# HTML: set <base href> so the SPA router knows its prefix