aboutsummaryrefslogtreecommitdiffstats
path: root/templates/ingress
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2026-01-16 15:12:55 +0200
committerJan Tuomi <jan@jantuomi.fi>2026-01-16 15:12:55 +0200
commit3dddde75c8ba02f8b5365c1499b503c2215a2073 (patch)
tree1c950d705afe27e7856e6b3c2638c208d2524db2 /templates/ingress
parent27958e6c144eee64371be75afe82dd7b4505cd79 (diff)
Fix /feed.xml, https upgrade
Diffstat (limited to 'templates/ingress')
-rw-r--r--templates/ingress/usr_local_etc_nginx_nginx.conf.j210
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;