From cc1b02f99e457d2a5a440698e9bae1ca30f408e1 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Fri, 25 Jul 2025 00:09:01 +0300 Subject: Initial impl of vnet jails --- templates/usr_local_etc_nginx_nginx.conf.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'templates/usr_local_etc_nginx_nginx.conf.j2') diff --git a/templates/usr_local_etc_nginx_nginx.conf.j2 b/templates/usr_local_etc_nginx_nginx.conf.j2 index fcdaf02..55c55df 100644 --- a/templates/usr_local_etc_nginx_nginx.conf.j2 +++ b/templates/usr_local_etc_nginx_nginx.conf.j2 @@ -22,7 +22,7 @@ http { {% for site in static_sites -%} {% if site.tls -%} - server { + {#server { listen 443 ssl; server_name {{ site.host }}; @@ -41,7 +41,7 @@ http { include /usr/local/etc/letsencrypt/options-ssl-nginx.conf; ssl_dhparam /usr/local/etc/letsencrypt/ssl-dhparams.pem; } - + #} {% endif -%} server { @@ -61,7 +61,7 @@ http { server_name {{ jail.name }}.jan.systems {{ jail.name }}.local.jan.systems; location / { - proxy_pass http://{{ jail.ip }}; + proxy_pass http://192.168.2.{{ jail.num }}; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; -- cgit v1.3