diff --git a/production/ksonnet/loki/gateway.libsonnet b/production/ksonnet/loki/gateway.libsonnet index f2174dbc7b84..6492e7b0f7e7 100644 --- a/production/ksonnet/loki/gateway.libsonnet +++ b/production/ksonnet/loki/gateway.libsonnet @@ -3,6 +3,10 @@ local k = import 'ksonnet-util/kausal.libsonnet'; { _config+:: { htpasswd_contents: error 'must specify htpasswd contents', + + // This is inserted into the gateway Nginx config file + // under the server directive + gateway_server_snippet: '', }, _images+:: { @@ -74,6 +78,8 @@ local k = import 'ksonnet-util/kausal.libsonnet'; location ~ /loki/api/.* { proxy_pass http://query-frontend.%(namespace)s.svc.cluster.local:%(http_listen_port)s$request_uri; } + + %(gateway_server_snippet)s } } ||| % $._config,