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 d9c569da1ae8c905bf0fba8a5b202077b25009fe
parent 6855f778b5c58b173f0d58dfb2ed097f24b6bd9e
Author: Dionysis Grigoropoulos <dgrig@erethon.com>
Date:   Sat,  2 Jun 2018 21:19:30 +0300

static: Add configuration for blog.erethon.com

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

diff --git a/ansible/roles/haproxy/templates/haproxy.cfg.j2 b/ansible/roles/haproxy/templates/haproxy.cfg.j2 @@ -43,7 +43,7 @@ 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 ssl crt /etc/ssl/private/erethon.com/erethon.pem ssl crt /etc/ssl/private/erethon.com/f.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 ssl crt /etc/ssl/private/erethon.com/f.pem ssl crt /etc/ssl/private/erethon.com/grafana.pem ssl crt /etc/ssl/private/erethon.com/blog.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 } @@ -51,7 +51,8 @@ frontend ssl use_backend local if { url_beg /.well-known } use_backend plothopes if { hdr(host) -i plothopes.com -i www.plothopes.com } use_backend f.erethon.com if { hdr(host) -i f.erethon.com } - use_backend static if { hdr(host) -i capitalism.erethon.com -i hacked.erethon.com -i erethon.com -i www.erethon.com } + use_backend grafana.erethon.com if { hdr(host) -i grafana.erethon.com } + use_backend static if { hdr(host) -i capitalism.erethon.com -i hacked.erethon.com -i erethon.com -i www.erethon.com -i blog.erethon.com } backend plothopes mode http @@ -61,6 +62,10 @@ backend f.erethon.com mode http server f.erethon.com {{ files__private_ip }}:{{ files__port }} +backend grafana.erethon.com + mode http + server grafana.erethon.com {{ grafana__private_ip }}:{{ grafana__port }} + backend static mode http server webd {{ static__private_ip }}:80 diff --git a/ansible/roles/static.erethon.com/files/httpd/blog.conf b/ansible/roles/static.erethon.com/files/httpd/blog.conf @@ -0,0 +1,4 @@ +server "blog.erethon.com" { + listen on * port 80 + root "/htdocs/blog.erethon.com" +} diff --git a/ansible/roles/static.erethon.com/tasks/main.yml b/ansible/roles/static.erethon.com/tasks/main.yml @@ -24,4 +24,5 @@ - capitalism - hacked - erethon + - blog notify: Restart httpd