Skip to content

Commit

Permalink
Add more filters to nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
mrueg committed Oct 9, 2024
1 parent b8928ae commit d1f4987
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion teddycloud/rootfs/etc/nginx/templates/ingress.gtpl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ server {
proxy_redirect '/' $http_x_ingress_path/;
sub_filter_types text/xml text/css text/javascript application/javascript;
sub_filter 'href="/' 'href="$http_x_ingress_path/';
sub_filter '<script src="/' '<script src="$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/';
sub_filter '<script src="/' '<script src="$http_x_ingress_path/';
sub_filter '<script defer="defer" src="/' '<script defer="defer" src="$http_x_ingress_path/';
sub_filter "top.location.href='" "top.location.href='$http_x_ingress_path";
sub_filter "fetch('/v1/" "fetch('$http_x_ingress_path/v1/";
Expand Down

0 comments on commit d1f4987

Please sign in to comment.