aboutsummaryrefslogtreecommitdiffstats
path: root/terminaldweller.com
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--terminaldweller.com/haproxy/haproxy.cfg22
1 files changed, 18 insertions, 4 deletions
diff --git a/terminaldweller.com/haproxy/haproxy.cfg b/terminaldweller.com/haproxy/haproxy.cfg
index 7a11df9..809456d 100644
--- a/terminaldweller.com/haproxy/haproxy.cfg
+++ b/terminaldweller.com/haproxy/haproxy.cfg
@@ -28,7 +28,8 @@ frontend http
#Conditions
#use_backend chat-cert-backend if letsencrypt-acl chat-host
use_backend blog-backend-cert if letsencrypt-acl blog-host
- use_backend api-backend-cert if letsencrypt-acl api-host
+ use_backend api-crypto-backend-cert if letsencrypt-acl api-host crypto-api-acl
+ use_backend api-mila-backend-cert if letsencrypt-acl api-host mila-api-acl
use_backend certbot-backend if letsencrypt-acl !chat-host !blog-host !api-host
use_backend blog-backend if blog-host
use_backend mail-backend if mail-host
@@ -48,11 +49,14 @@ frontend https
#acl chat-host-s req.ssl_sni -i chat.terminaldweller.com
acl blog-host-s req.ssl_sni -i blog.terminaldweller.com
acl api-host-s req.ssl_sni -i api.terminaldweller.com
+ acl mila-api-host-s req.ssl_sni -i mila.terminaldweller.com
#Conditions
use_backend mail-backend-s if mail-host-s
#use_backend chat-backend-s if chat-host-s
use_backend blog-backend-s if blog-host-s
- use_backend api-backend-s if api-host-s
+ #use_backend api-crypto-backend-s if api-host-s crypto-api-acl
+ use_backend api-crypto-backend-s if api-host-s
+ use_backend api-mila-backend-s if mila-api-host-s
frontend jabber5222
bind *:5222
@@ -207,16 +211,26 @@ backend api-backend
mode http
option forwardfor
server api-host 192.99.102.52:8008 check
-backend api-backend-s
+backend api-crypto-backend-s
timeout server 60s
timeout client 60s
mode tcp
option ssl-hello-chk
server api-host 192.99.102.52:8008
-backend api-backend-cert
+backend api-crypto-backend-cert
mode http
option forwardfor
server api-host 192.99.102.52:80
+backend api-mila-backend-s
+ timeout server 60s
+ timeout client 60s
+ mode tcp
+ option ssl-hello-chk
+ server api-mila-host 130.185.121.80:19019
+backend api-mila-backend-cert
+ mode http
+ option forwardfor
+ server api-mila-host 130.185.121.80
backend chat-backend-admin
mode http