diff options
Diffstat (limited to 'templates/ingress/usr_local_etc_nginx_nginx.conf.j2')
| -rw-r--r-- | templates/ingress/usr_local_etc_nginx_nginx.conf.j2 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/ingress/usr_local_etc_nginx_nginx.conf.j2 b/templates/ingress/usr_local_etc_nginx_nginx.conf.j2 index 1e58153..16299ef 100644 --- a/templates/ingress/usr_local_etc_nginx_nginx.conf.j2 +++ b/templates/ingress/usr_local_etc_nginx_nginx.conf.j2 @@ -42,6 +42,16 @@ http { {% for route in ingress_routes -%} server { + listen 80; + listen [::]:80; + server_name {{ route.host }}; + + include /usr/local/etc/nginx/snippets/ban.inc; + + return 307 https://$host$request_uri; + } + + server { server_name {{ route.host }}; http2 on; |
