ansible-debops-infrastructure

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.erethon.com/ansible-debops-infrastructure
Log | Files | Refs

commit 7b00470096c8d3257c69854203d6d940a576b32e
parent 4937ba6e3f5a8b596921d69455d6ef9689f48e78
Author: Dionysis Grigoropoulos <dgrig@erethon.com>
Date:   Tue,  8 May 2018 23:59:34 +0300

haproxy: Enable erethon.com

Diffstat:
ansible/roles/haproxy/templates/haproxy.cfg.j2 | 4++--
ansible/roles/static.erethon.com/files/httpd/erethon.conf | 5+++++
ansible/roles/static.erethon.com/tasks/main.yml | 1+
3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/ansible/roles/haproxy/templates/haproxy.cfg.j2 b/ansible/roles/haproxy/templates/haproxy.cfg.j2 @@ -52,14 +52,14 @@ frontend eighty redirect scheme https if !{ ssl_fc } frontend ssl - bind *:443 ssl crt /etc/ssl/private/plothopes.com/plothopes.pem ssl crt /etc/ssl/private/erethon.com/capitalism.pem + bind *:443 ssl crt /etc/ssl/private/plothopes.com/plothopes.pem ssl crt /etc/ssl/private/erethon.com/capitalism.pem ssl crt /etc/ssl/private/erethon.com/erethon.pem mode http http-response set-header Strict-Transport-Security max-age=16000000;\ includeSubDomains;\ preload http-request set-header X-Forwarded-Proto https if { ssl_fc } use_backend local if { url_beg /.well-known } use_backend plothopes if { hdr(host) -i plothopes.com -i www.plothopes.com } - use_backend static if { hdr(host) -i capitalism.erethon.com -i hacked.erethon.com } + use_backend static if { hdr(host) -i capitalism.erethon.com -i hacked.erethon.com -i erethon.com -i www.erethon.com } backend plothopes mode http diff --git a/ansible/roles/static.erethon.com/files/httpd/erethon.conf b/ansible/roles/static.erethon.com/files/httpd/erethon.conf @@ -0,0 +1,5 @@ +server "erethon.com" { + alias "www.erethon.com" + listen on * port 80 + root "/htdocs/erethon.com" +} diff --git a/ansible/roles/static.erethon.com/tasks/main.yml b/ansible/roles/static.erethon.com/tasks/main.yml @@ -23,4 +23,5 @@ with_items: - capitalism - hacked + - erethon notify: Restart httpd