Skip to content

Commit

Permalink
Filter application/json mimetype as well
Browse files Browse the repository at this point in the history
mrueg committed Jan 28, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent b62f1f8 commit d35ad0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion teddycloud/rootfs/etc/nginx/servers/ingress.conf
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ server {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Origin "";
proxy_redirect '/' $http_x_ingress_path/;
sub_filter_types text/xml text/css text/json text/javascript application/javascript;
sub_filter_types text/xml text/css text/json text/javascript application/javascript application/json;
sub_filter 'href="/' 'href="$http_x_ingress_path/';
sub_filter '<script type="module" crossorigin src="/web' '<script type="module" crossorigin src="$http_x_ingress_path/web';
sub_filter '<link rel="stylesheet" crossorigin href="/web/' '<link rel="stylesheet" crossorigin href="$http_x_ingress_path/web/';

0 comments on commit d35ad0d

Please sign in to comment.