summaryrefslogtreecommitdiff
path: root/chaos-at-home
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-08-28 18:52:09 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-08-28 18:52:09 +0200
commitd6d95e518e716fe924ec4f8507e7cbe93fdea56f (patch)
tree312f91f99d45e059dc45677d8c8e4f643e53cfbc /chaos-at-home
parentadd host ch-http-proxy (diff)
ch-http-proxy: simple forwards are done
Diffstat (limited to 'chaos-at-home')
-rw-r--r--chaos-at-home/ch-http-proxy.yml55
1 files changed, 47 insertions, 8 deletions
diff --git a/chaos-at-home/ch-http-proxy.yml b/chaos-at-home/ch-http-proxy.yml
index 7302072b..cac572c1 100644
--- a/chaos-at-home/ch-http-proxy.yml
+++ b/chaos-at-home/ch-http-proxy.yml
@@ -6,15 +6,54 @@
- role: core/base
- role: core/sshd
- role: core/zsh
- # - role: apt-repo/spreadspace
- # - role: acmetool/base
+ - role: apt-repo/spreadspace
+ - role: acmetool/base
- role: nginx/base
- # - role: acmetool/cert
- # acmetool_cert_name: "http.chaos-at-home.org"
- # acmetool_cert_config:
- # request:
- # challenge:
- # http-self-test: false
+ - role: nginx/vhost
+ nginx_vhost:
+ name: webmail
+ template: generic-proxy-no-buffering-with-acme
+ acme: yes
+ hostnames:
+ - webmail.chaos-at-home.org
+ client_max_body_size: "200M"
+ proxy_pass: "https://{{ network_zones.lan.prefix | ipaddr(network_zones.lan.offsets['ch-prometheus-old']) | ipaddr('address') }}/"
+ acmetool_cert_config:
+ request:
+ challenge:
+ http-self-test: false
+ - role: nginx/vhost
+ nginx_vhost:
+ name: webdav
+ template: generic-proxy-no-buffering-with-acme
+ acme: yes
+ hostnames:
+ - webdav.chaos-at-home.org
+ proxy_pass: "https://{{ network_zones.lan.prefix | ipaddr(network_zones.lan.offsets['ch-prometheus-old']) | ipaddr('address') }}/"
+ acmetool_cert_config:
+ request:
+ challenge:
+ http-self-test: false
+ - role: nginx/vhost
+ nginx_vhost:
+ name: imap
+ acme: no
+ 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;
+ }
+ }
+
# post_tasks:
# - name: install systemd service unit for service-ip
# copy: