From 6fff7cb485588a62344bb4015924f3eecdb56e19 Mon Sep 17 00:00:00 2001 From: Tom Siewert Date: Wed, 1 May 2024 21:05:43 +0200 Subject: [PATCH] installer: nginx: add missing locales location required by ui_next (#1822) The new UI depends on the locales available via ingress/locales which is being served as static file and not via Django. A change in the nginx.conf was already done for the dev environment in commit ec4f10d86881389af12371f90cb75af03417d109 (AWX), but not here. Signed-off-by: Tom Siewert --- roles/installer/templates/configmaps/config.yaml.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/installer/templates/configmaps/config.yaml.j2 b/roles/installer/templates/configmaps/config.yaml.j2 index b2003c3df..ae7a28673 100644 --- a/roles/installer/templates/configmaps/config.yaml.j2 +++ b/roles/installer/templates/configmaps/config.yaml.j2 @@ -184,6 +184,10 @@ data: alias /var/lib/awx/public/static/; } + location {{ (ingress_path + '/locales').replace('//', '/') }} { + alias /var/lib/awx/public/static/awx/locales; + } + location {{ (ingress_path + '/favicon.ico').replace('//', '/') }} { alias /var/lib/awx/public/static/media/favicon.ico; }