diff --git a/images/horizon/Dockerfile b/images/horizon/Dockerfile index beb21624..ff48785b 100644 --- a/images/horizon/Dockerfile +++ b/images/horizon/Dockerfile @@ -48,3 +48,4 @@ ENV UWSGI_HTTP_SOCKET=:8000 \ UWSGI_CHECK_STATIC=/usr/local/lib/python3.7/site-packages/static/ \ UWSGI_STATIC_MAP="/static=/usr/local/lib/python3.7/site-packages/static/" \ UWSGI_MIME_FILE="/etc/mime.types" +CMD ["/usr/local/bin/uwsgi","--ini","/etc/uwsgi/uwsgi.ini"] diff --git a/openstack_operator/templates/horizon/daemonset.yml.j2 b/openstack_operator/templates/horizon/daemonset.yml.j2 index 14019180..9b0f001a 100644 --- a/openstack_operator/templates/horizon/daemonset.yml.j2 +++ b/openstack_operator/templates/horizon/daemonset.yml.j2 @@ -73,6 +73,8 @@ spec: volumeMounts: - name: config mountPath: /etc/horizon + - name: uwsgi-config + mountPath: /etc/uwsgi {% if 'logo' in spec %} - name: logo mountPath: /usr/local/lib/python3.7/site-packages/static/dashboard/img/logo.svg @@ -89,6 +91,10 @@ spec: configMap: defaultMode: 420 name: horizon + - name: uwsgi-config + configMap: + defaultMode: 420 + name: uwsgi-default {% if 'logo' in spec %} - name: logo configMap: