We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efda877 commit 5665b87Copy full SHA for 5665b87
1 file changed
chart/templates/configmap-nginx.yaml
@@ -20,6 +20,13 @@ data:
20
client_body_buffer_size 128k;
21
client_header_buffer_size 1k;
22
large_client_header_buffers 4 16k;
23
+
24
+ {{- if include "openops.isHttps" . }}
25
+ # Redirect HTTP to HTTPS when behind a TLS-terminating load balancer
26
+ if ($http_x_forwarded_proto = "http") {
27
+ return 301 https://$host$request_uri;
28
+ }
29
+ {{- end }}
30
31
# Security headers
32
{{- if .Values.nginx.securityHeaders.enabled }}
0 commit comments