Fix nginx: add text/javascript to sub_filter_types for GrampsWeb subpath rewriting (STI-91)
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user