From ec6a1ed9d1c72951730691a764a5d19be1620907 Mon Sep 17 00:00:00 2001 From: Patrick Decat Date: Mon, 8 Feb 2021 18:48:34 +0100 Subject: [PATCH] Add nginx sub_filter to fix resources from /dist with HA ingress --- nginx/nginx.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 11ca7e997..4c0b4638f 100644 --- a/nginx/nginx.conf +++ b/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 '' ''; sub_filter_types text/css application/javascript;