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.
8 lines
148 B
Django/Jinja
8 lines
148 B
Django/Jinja
backend myala
|
|
server myala myala.pyrocufflink.jazz:80 check
|
|
|
|
|
|
backend myala-tls
|
|
mode tcp
|
|
server myala myala.pyrocufflink.jazz:443 check
|