diff options
author | terminaldweller <thabogre@gmail.com> | 2022-03-05 18:56:29 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-03-05 18:56:29 +0000 |
commit | f398d94c0d73cb88da72c31fba1ab4107acef82a (patch) | |
tree | 8f44c50400a345f6526e8bf9a1bcf12f70ac1752 /terminaldweller.com | |
parent | some updates (diff) | |
download | scripts-f398d94c0d73cb88da72c31fba1ab4107acef82a.tar.gz scripts-f398d94c0d73cb88da72c31fba1ab4107acef82a.zip |
added http to https redirect
Diffstat (limited to '')
-rw-r--r-- | terminaldweller.com/haproxy/haproxy.cfg | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/terminaldweller.com/haproxy/haproxy.cfg b/terminaldweller.com/haproxy/haproxy.cfg index 9a71d5e..6b75014 100644 --- a/terminaldweller.com/haproxy/haproxy.cfg +++ b/terminaldweller.com/haproxy/haproxy.cfg @@ -27,17 +27,20 @@ frontend http acl searx-host hdr_sub(host) -i searx.terminaldweller.com acl mila-api-acl url_beg /mila acl crypto-api-acl url_beg /crypto + acl http ssl_fc,not #Conditions #use_backend chat-cert-backend if letsencrypt-acl chat-host use_backend blog-backend-cert if letsencrypt-acl blog-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 searx-backend if letsencrypt-acl searx-host + use_backend api-crypto-backend-cert if letsencrypt-acl api-host + use_backend api-mila-backend-cert if letsencrypt-acl api-host + use_backend searx-backend-cert if letsencrypt-acl searx-host 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 use_backend api-backend if api-host + use_backend searx-backend if searx-host #use_backend chat-backend if chat-host + http-request redirect scheme https if http default_backend blog-backend frontend https @@ -258,15 +261,18 @@ backend chat-cert-backend mode http server chat-cert-server 130.185.121.80:8880 +backend searx-backend-cert + mode http + server searx-host-cert 130.185.121.80:80 backend searx-backend mode http - server searx-host 130.185.121.80:80 + server searx-host 130.185.121.80:8088 backend searx-backend-s timeout server 60s timeout client 60s mode tcp option ssl-hello-chk - server searx-host-s 130.185.121.80:443 + server searx-host-s 130.185.121.80:8089 backend cargo-backend-s timeout server 60s |