roles/dch-proxy: Add OpenVPN backend
The `openvpn` haproxy backend allows forwarding TLS traffic for *vpn.securepassage.com* to the OpenVPN-over-TLS service on the gateway.
This commit is contained in:
@@ -25,3 +25,10 @@
|
|||||||
dest=/etc/haproxy/70-backend-jenkins.cfg
|
dest=/etc/haproxy/70-backend-jenkins.cfg
|
||||||
mode=0644
|
mode=0644
|
||||||
notify: reload haproxy
|
notify: reload haproxy
|
||||||
|
|
||||||
|
- name: ensure openvpn haproxy backend is configured
|
||||||
|
template:
|
||||||
|
src=backend-openvpn.haproxy.cfg.j2
|
||||||
|
dest=/etc/haproxy/70-backend-openvpn.cfg
|
||||||
|
mode=0644
|
||||||
|
notify: reload haproxy
|
||||||
|
|||||||
3
roles/dch-proxy/templates/backend-openvpn.haproxy.cfg.j2
Normal file
3
roles/dch-proxy/templates/backend-openvpn.haproxy.cfg.j2
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
backend openvpn
|
||||||
|
mode tcp
|
||||||
|
server openvpn 172.30.0.1:9876 check
|
||||||
@@ -20,4 +20,5 @@ frontend main-tls
|
|||||||
use_backend gitea-tls if { req_ssl_sni -i git.pyrocufflink.net }
|
use_backend gitea-tls if { req_ssl_sni -i git.pyrocufflink.net }
|
||||||
use_backend jenkins-tls if { req_ssl_sni -i jenkins.pyrocufflink.blue }
|
use_backend jenkins-tls if { req_ssl_sni -i jenkins.pyrocufflink.blue }
|
||||||
use_backend jenkins-tls if { req_ssl_sni -i jenkins.pyrocufflink.net }
|
use_backend jenkins-tls if { req_ssl_sni -i jenkins.pyrocufflink.net }
|
||||||
default_backend myala-tls
|
use_backend myala-tls if { req_ssl_sni -i darkchestofwonders.us }
|
||||||
|
default_backend openvpn
|
||||||
|
|||||||
Reference in New Issue
Block a user