Jelajahi Sumber

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

Patrick Decat 4 tahun lalu
induk
melakukan
ec6a1ed9d1
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  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;