roles/dch-proxy: Deploy reverse HTTP/HTTPS proxy
The *dch-proxy* role sets up HAProxy to provide a revers proxy for all public-facing web services on the Pyrocufflink network. It uses the TLS Server Name Indication (SNI) extension to determine the proper backend server based on the name requested by the client. For now, only Gitea is configured; the name *git.pyrocufflink.blue* is proxied to *git0.pyrocufflink.blue*. All other names are proxied to Myala.
This commit is contained in:
7
roles/dch-proxy/templates/backend-myala.haproxy.cfg.j2
Normal file
7
roles/dch-proxy/templates/backend-myala.haproxy.cfg.j2
Normal file
@@ -0,0 +1,7 @@
|
||||
backend myala
|
||||
server myala myala.pyrocufflink.jazz:80 check
|
||||
|
||||
|
||||
backend myala-tls
|
||||
mode tcp
|
||||
server myala myala.pyrocufflink.jazz:443 check
|
||||
Reference in New Issue
Block a user