Browse Source

Add nginx sub_filter to fix resources from /dist with HA ingress

Patrick Decat 4 years ago
parent
commit
ec6a1ed9d1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      nginx/nginx.conf

+ 1 - 0
nginx/nginx.conf

@@ -124,6 +124,7 @@ http {
 
             sub_filter 'href="/' 'href="$http_x_ingress_path/';
             sub_filter 'url(/' 'url($http_x_ingress_path/';
+            sub_filter '"/dist/' '"$http_x_ingress_path/dist/';
             sub_filter '"/js/' '"$http_x_ingress_path/js/';
             sub_filter '<body>' '<body><script>window.baseUrl="$http_x_ingress_path";</script>';
             sub_filter_types text/css application/javascript;