summaryrefslogtreecommitdiff
path: root/chaos-at-home/ch-http-proxy.yml
diff options
context:
space:
mode:
Diffstat (limited to 'chaos-at-home/ch-http-proxy.yml')
-rw-r--r--chaos-at-home/ch-http-proxy.yml33
1 files changed, 33 insertions, 0 deletions
diff --git a/chaos-at-home/ch-http-proxy.yml b/chaos-at-home/ch-http-proxy.yml
index 9a80a446..dc57ad6f 100644
--- a/chaos-at-home/ch-http-proxy.yml
+++ b/chaos-at-home/ch-http-proxy.yml
@@ -11,6 +11,20 @@
- role: nginx/base
- role: nginx/vhost
nginx_vhost:
+ default: yes
+ name: web
+ template: static-files-with-acme
+ acme: yes
+ hostnames:
+ - web.chaos-at-home.org
+ root: /var/www/default
+ index: index.html
+ 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
@@ -61,6 +75,25 @@
regexp: '^MinProtocol\s*='
line: 'MinProtocol = TLSv1.0'
+ - name: create directory for default server
+ file:
+ path: /var/www/default
+ state: directory
+
+ - name: install index.html for default server
+ copy:
+ dest: /var/www/default/index.html
+ content: |
+ <html>
+ <head>
+ <title>No Such Site</title>
+ </head>
+ <body>
+ <div style="text-align: center; margin-top: 4em; margin-left:auto; margin-right:auto; font-family: Helvetica, Arial, Sans-Serif;">
+ <h2 style="">You have reached the chaos-at-home internal webserver, however the URL that you used is unknown to this host.</h2>
+ </div>
+ </body>
+ </html>
# - name: install systemd service unit for service-ip
# copy:
# dest: /etc/systemd/system/http-service-ip.service