Created
February 15, 2022 13:19
-
-
Save SaraVieira/636088609b519161e8d83df600191f37 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker exec -ti coolify-haproxy cat /etc/haproxy/haproxy.cfg | |
# _md5hash=118ef9c8eb10791d900f4af8db86e383 | |
# _version=42599 | |
# Dataplaneapi managed File | |
# changing file directly can cause a conflict if dataplaneapi is running | |
global | |
stats socket /var/run/api.sock user haproxy group haproxy mode 660 level admin expose-fd listeners | |
log stdout format raw local0 debug | |
defaults | |
mode http | |
log global | |
timeout http-request 60s | |
timeout connect 10s | |
timeout client 60s | |
timeout server 60s | |
userlist haproxy-dataplaneapi | |
user admin insecure-password "${HAPROXY_PASSWORD}" | |
frontend http | |
mode http | |
bind :80 | |
bind :443 ssl crt /usr/local/etc/haproxy/ssl/ alpn h2,http/1.1 | |
acl is_certbot path_beg /.well-known/acme-challenge/ | |
http-request redirect scheme https code 301 if { hdr(Host) -i deploy.iamsaravieira.com } !{ ssl_fc } | |
http-request redirect scheme https code 301 if { hdr(Host) -i analytics.iamsaravieira.com } !{ ssl_fc } | |
http-request redirect scheme https code 301 if { hdr(Host) -i one.deploy.iamsaravieira.com } !{ ssl_fc } | |
http-request redirect scheme https code 301 if { hdr(Host) -i 2.one.deploy.iamsaravieira.com } !{ ssl_fc } | |
http-request redirect scheme https code 301 if { hdr(Host) -i vault.iamsaravieira.com } !{ ssl_fc } | |
http-request redirect scheme https code 301 if { hdr(Host) -i files.iamsaravieira.com } !{ ssl_fc } | |
http-request redirect scheme https code 301 if { hdr(Host) -i nocodb.iamsaravieira.com } !{ ssl_fc } | |
http-request redirect scheme https code 301 if { hdr(Host) -i movies.iamsaraviera.com } !{ ssl_fc } | |
http-request redirect scheme https code 301 if { hdr(Host) -i movies.iamsaravieira.com } !{ ssl_fc } | |
http-request redirect scheme https code 301 if { hdr(host) -i movies.iamsaravieira.com } !{ ssl_fc } | |
http-request redirect location https://movies.iamsaravieira.com%[capture.req.uri] code 301 if { req.hdr(host) -i www.movies.iamsaravieira.com } | |
http-request redirect scheme https code 301 if { hdr(host) -i m.deploys.iamsaravieira.com } !{ ssl_fc } | |
http-request redirect scheme https code 301 if { hdr(host) -i m.deploy.iamsaravieira.com } !{ ssl_fc } | |
http-request redirect location https://m.deploy.iamsaravieira.com%[capture.req.uri] code 301 if { req.hdr(host) -i www.m.deploy.iamsaravieira.com } | |
http-request redirect scheme https code 301 if { hdr(host) -i meili.iamsaravieira.com } !{ ssl_fc } | |
http-request redirect location https://meili.iamsaravieira.com%[capture.req.uri] code 301 if { req.hdr(host) -i www.meili.iamsaravieira.com } | |
use_backend backend-certbot if is_certbot | |
use_backend %[req.hdr(host),lower] | |
frontend stats | |
bind *:8404 | |
stats enable | |
stats uri / | |
stats refresh 5s | |
stats admin if TRUE | |
stats auth "${HAPROXY_USERNAME}:${HAPROXY_PASSWORD}" | |
backend analytics.iamsaravieira.com | |
option forwardfor | |
server ckzj3g1t241510onxn3xgowon ckzj3g1t241510onxn3xgowon:8000 check | |
backend backend-certbot | |
mode http | |
server certbot host.docker.internal:9080 | |
backend deploy.iamsaravieira.com | |
option forwardfor | |
option httpchk GET /undead.json | |
server coolify coolify:3000 check fall 10 | |
backend files.iamsaravieira.com | |
option forwardfor | |
server ckziw2cav10690onxchpkzlcf ckziw2cav10690onxchpkzlcf:9001 check | |
backend m.deploy.iamsaravieira.com | |
option forwardfor | |
server ckzm0hao2222220oo065tj7t8q ckzm0hao2222220oo065tj7t8q:7700 check | |
backend meili.iamsaravieira.com | |
option forwardfor | |
server ckzm0hao2222220oo065tj7t8q ckzm0hao2222220oo065tj7t8q:7700 check | |
backend movies.iamsaravieira.com | |
option forwardfor | |
server ckzlnb71b1914620onxpxsoe8gy ckzlnb71b1914620onxpxsoe8gy:3000 check | |
backend nocodb.iamsaravieira.com | |
option forwardfor | |
server ckzj6kyon117790onxopwzu0ou ckzj6kyon117790onxopwzu0ou:8080 check | |
backend one.deploy.iamsaravieira.com | |
option forwardfor | |
server ckzifq8zr55710qp7if14zjal ckzifq8zr55710qp7if14zjal:3000 check | |
backend vault.iamsaravieira.com | |
option forwardfor | |
server ckzivpzzp01800onxvzw8ce8b ckzivpzzp01800onxvzw8ce8b:80 check | |
program api | |
command /usr/bin/dataplaneapi -f /usr/local/etc/haproxy/dataplaneapi.hcl --userlist haproxy-dataplaneapi | |
no option start-on-reload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment