diff options
author | Christian Pointner <equinox@spreadspace.org> | 2024-04-02 19:00:25 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2024-04-02 19:00:25 +0200 |
commit | 65b5dd6aee7081da61a4c8a525a20452c2a080ac (patch) | |
tree | 083eeb451e749052a270c03c7b6ed60bdd5496b3 /chaos-at-home | |
parent | since ele-companion-raspsi now lives in lan, mixer vlan again needs not internet (diff) |
nginx/vhost: always configure access_logs and error_logs
Diffstat (limited to 'chaos-at-home')
-rw-r--r-- | chaos-at-home/ch-http-proxy.yml | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/chaos-at-home/ch-http-proxy.yml b/chaos-at-home/ch-http-proxy.yml index e2de2f2f..dda1ee97 100644 --- a/chaos-at-home/ch-http-proxy.yml +++ b/chaos-at-home/ch-http-proxy.yml @@ -171,20 +171,14 @@ vars: nginx_vhost: name: imap - content: | - server { - listen 80; - listen [::]:80; - server_name imap.chaos-at-home.org; - - location /.well-known/acme-challenge/ { - proxy_pass http://{{ network_services.imap.addr }}; - } - - location / { - return 303 https://webmail.chaos-at-home.org; - } - } + template: generic + hostnames: + - imap.chaos-at-home.org + locations: + '/.well-known/acme-challenge/': + proxy_pass: "http://{{ network_services.imap.addr }}" + '/': + return: "303 https://webmail.chaos-at-home.org" include_role: name: nginx/vhost |