From 7d7a22cba5c1040fe4e6f3e7d7f13f384ef10837 Mon Sep 17 00:00:00 2001 From: Ivan Date: Wed, 9 Feb 2022 14:39:42 +0200 Subject: [PATCH] Fixing sub_filters_types for proper js rewrite (#60) --- services/nginx/teslamate.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/nginx/teslamate.conf b/services/nginx/teslamate.conf index dfe9ed0..7bec824 100644 --- a/services/nginx/teslamate.conf +++ b/services/nginx/teslamate.conf @@ -23,7 +23,7 @@ server { proxy_set_header Accept-Encoding ""; # Enable sub-filtering - sub_filter_types text/css text/xml application/javascript; + sub_filter_types text/css text/xml application/javascript text/javascript; sub_filter_once off; # Home URLs in the HTML @@ -36,4 +36,4 @@ server { sub_filter '"/live"' '"$http_x_ingress_path/live"'; sub_filter '"/js/"' '"$http_x_ingress_path/js/"'; } -} \ No newline at end of file +}