roles/dch-proxy: Configure proxy for Nextcloud

This commit adds front-end and back-end configuration for HAProxy to
proxy HTTP/HTTPS for
*nextcloud.pyrocufflink.net*/*nextcloud.pyrocufflink.blue* to
*cloud0.pyrocufflink.blue*.
jenkins-master
Dustin 2020-03-09 20:10:59 -05:00
parent b09bf84a3b
commit 2b49c5a02e
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,7 @@
backend nextcloud
server nextcloud cloud0.pyrocufflink.blue:80 check
backend nextcloud-tls
mode tcp
server nextcloud cloud0.pyrocufflink.blue:443 check

View File

@ -7,6 +7,7 @@ frontend main
use_backend jenkins if { hdr(host) -i jenkins.pyrocufflink.net } use_backend jenkins if { hdr(host) -i jenkins.pyrocufflink.net }
use_backend bitwarden if { hdr(host) -i bitwarden.pyrocufflink.blue } use_backend bitwarden if { hdr(host) -i bitwarden.pyrocufflink.blue }
use_backend bitwarden if { hdr(host) -i bitwarden.pyrocufflink.net } use_backend bitwarden if { hdr(host) -i bitwarden.pyrocufflink.net }
use_backend nextcloud if { hdr(host) -i nextcloud.pyrocufflink.net }
default_backend web default_backend web
@ -24,6 +25,7 @@ frontend main-tls
use_backend jenkins-tls if { req_ssl_sni -i jenkins.pyrocufflink.net } use_backend jenkins-tls if { req_ssl_sni -i jenkins.pyrocufflink.net }
use_backend bitwarden-tls if { req_ssl_sni -i bitwarden.pyrocufflink.blue } use_backend bitwarden-tls if { req_ssl_sni -i bitwarden.pyrocufflink.blue }
use_backend bitwarden-tls if { req_ssl_sni -i bitwarden.pyrocufflink.net } use_backend bitwarden-tls if { req_ssl_sni -i bitwarden.pyrocufflink.net }
use_backend nextcloud-tls if { req_ssl_sni -i nextcloud.pyrocufflink.net }
use_backend web-tls if { req_ssl_sni -i darkchestofwonders.us } use_backend web-tls if { req_ssl_sni -i darkchestofwonders.us }
use_backend web-tls if { req_ssl_sni -i pyrocufflink.net } use_backend web-tls if { req_ssl_sni -i pyrocufflink.net }
default_backend openvpn default_backend openvpn