diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-07-25 00:09:01 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-09-26 16:14:53 +0200 |
| commit | cc1b02f99e457d2a5a440698e9bae1ca30f408e1 (patch) | |
| tree | d26b3086697996b27f9e459cadcf195adc60eebb /templates/usr_local_etc_nginx_nginx.conf.j2 | |
| parent | d1c9aa40ccb5910076d0ec94843efccf62ee006a (diff) | |
Initial impl of vnet jails
Diffstat (limited to 'templates/usr_local_etc_nginx_nginx.conf.j2')
| -rw-r--r-- | templates/usr_local_etc_nginx_nginx.conf.j2 | 6 |
1 files changed, 3 insertions, 3 deletions
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; |
