aboutsummaryrefslogtreecommitdiffstats
path: root/terminaldweller.com/haproxy/haproxy.cfg
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-11-04 05:03:18 +0000
committerterminaldweller <thabogre@gmail.com>2022-11-04 05:03:18 +0000
commit24bd72d7b2bfacc3caa45509b25e0ed9990b901a (patch)
tree3226f52f1aa9fdc16e68752a77ecdf8231086dfe /terminaldweller.com/haproxy/haproxy.cfg
parentcgit update (diff)
downloadscripts-24bd72d7b2bfacc3caa45509b25e0ed9990b901a.tar.gz
scripts-24bd72d7b2bfacc3caa45509b25e0ed9990b901a.zip
update
Diffstat (limited to 'terminaldweller.com/haproxy/haproxy.cfg')
-rw-r--r--terminaldweller.com/haproxy/haproxy.cfg17
1 files changed, 17 insertions, 0 deletions
diff --git a/terminaldweller.com/haproxy/haproxy.cfg b/terminaldweller.com/haproxy/haproxy.cfg
index 6b2e93d..b659cb3 100644
--- a/terminaldweller.com/haproxy/haproxy.cfg
+++ b/terminaldweller.com/haproxy/haproxy.cfg
@@ -43,6 +43,7 @@ frontend http
acl devourer-host hdr_sub(host) -i mila.terminaldweller.com
acl discord-host hdr_sub(host) -i discord.terminaldweller.com
acl rssgen-host hdr_sub(host) -i rssgen.terminaldweller.com
+ acl git-host hdr_sub(host) -i git.terminaldweller.com
acl mila-api-acl url_beg /mila
acl crypto-api-acl url_beg /crypto
acl http ssl_fc,not
@@ -56,6 +57,7 @@ frontend http
http-request redirect scheme https code 301 if http api-host !letsencrypt-acl
http-request redirect scheme https code 301 if http devourer-host !letsencrypt-acl
http-request redirect scheme https code 301 if http searx-host !letsencrypt-acl
+ http-request redirect scheme https code 301 if http git-host !letsencrypt-acl
# http-request redirect scheme https code 301 if http rssgen-host !letsencrypt-acl
#Conditions
@@ -69,6 +71,7 @@ frontend http
use_backend api-mila-backend-cert if letsencrypt-acl api-host
use_backend searx-backend-cert if letsencrypt-acl searx-host
use_backend searx-backend-cert if letsencrypt-acl rssgen-host
+ use_backend searx-backend-cert if letsencrypt-acl git-host
# use_backend editor-backend-cert if letsencrypt-acl editor-host
use_backend certbot-backend if letsencrypt-acl !chat-host !blog-host !api-host
use_backend blog-backend if blog-host
@@ -76,6 +79,7 @@ frontend http
use_backend api-backend if api-host
use_backend searx-backend if searx-host
use_backend rssgen-backend if rssgen-host
+ use_backend git-backend if git-host
#use_backend chat-backend if chat-host
default_backend blog-backend
@@ -94,6 +98,7 @@ frontend https
acl api-host-s req.ssl_sni -i api.terminaldweller.com
acl mila-api-host-s req.ssl_sni -i mila.terminaldweller.com
acl searx-host-s req.ssl_sni -i searx.terminaldweller.com
+ acl git-host-s req.ssl_sni -i git.terminaldweller.com
acl cargo-host-s req.ssl_sni -i cargo.terminaldweller.com
acl editor-host-s req.ssl_sni -i editor.terminaldweller.com
acl editorsave-host-s req.ssl_sni -i editorsave.terminaldweller.com
@@ -110,6 +115,7 @@ frontend https
use_backend cargo-backend-s if cargo-host-s
use_backend editor-backend-s if editor-host-s
use_backend editorsave-backend-s if editorsave-host-s
+ use_backend git-backend-s if git-host-s
#frontend jabber5222
# bind *:5222
@@ -325,9 +331,11 @@ backend searx-backend
mode http
server searx-host 130.185.121.80:8080
backend searx-backend-s
+ #balance roundrobin
mode tcp
option tcp-check
server searx-host-s 130.185.121.80:8081 maxconn 10
+ #server searx-host-s 192.99.102.52:8081 maxconn 10
backend cargo-backend-s
mode tcp
@@ -348,3 +356,12 @@ backend rssgen-backend
mode http
option forwardfor
server rssgen-host 130.185.121.80:3000 check
+
+backend git-backend
+ mode http
+ option forwardfor
+ server git-host 130.185.121.80:8042
+backend git-backend-s
+ mode tcp
+ option tcp-check
+ server git-host-s 130.185.121.80:8043 check