mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Adding hetzner servers to haproxy
This commit is contained in:
parent
6ccdbea78f
commit
9b7be4d70a
2 changed files with 36 additions and 37 deletions
|
@ -7,7 +7,7 @@ groups:
|
|||
|
||||
web: inventory_hostname.startswith('happ')
|
||||
app: inventory_hostname.startswith('happ')
|
||||
django: inventory_hostname.startswith('happ-django')
|
||||
django: inventory_hostname.startswith('happ-web')
|
||||
refresh: inventory_hostname.startswith('happ-refresh')
|
||||
counts: inventory_hostname.startswith('happ-counts')
|
||||
push: inventory_hostname.startswith('happ-push')
|
||||
|
|
|
@ -130,30 +130,6 @@ backend app_push
|
|||
{% endfor %}
|
||||
# server-template app-push 1 _app-push._tcp.service.nyc1.consul:8000 check inter 2000ms resolvers consul resolve-prefer ipv4 resolve-opts allow-dup-ip init-addr none
|
||||
|
||||
backend blog
|
||||
balance roundrobin
|
||||
option httpchk GET /_nginxchk
|
||||
default-server check inter 2000ms resolvers consul resolve-prefer ipv4 resolve-opts allow-dup-ip init-addr none
|
||||
{% for host in groups.blogs %}
|
||||
server {{host}} {{host}}.node.nyc1.consul:80
|
||||
{% endfor %}
|
||||
|
||||
backend sentry
|
||||
balance roundrobin
|
||||
option httpchk GET /_health
|
||||
default-server check inter 2000ms resolvers consul resolve-prefer ipv4 resolve-opts allow-dup-ip init-addr none
|
||||
{% for host in groups.sentry %}
|
||||
server {{host}} {{host}}.node.nyc1.consul:9000
|
||||
{% endfor %}
|
||||
|
||||
backend staging
|
||||
balance roundrobin
|
||||
option httpchk GET /_haproxychk
|
||||
default-server check inter 2000ms resolvers consul resolve-prefer ipv4 resolve-opts allow-dup-ip init-addr none
|
||||
{% for host in groups.staging %}
|
||||
server {{host}} {{host}}.node.nyc1.consul:8000
|
||||
{% endfor %}
|
||||
|
||||
backend node_images
|
||||
option httpchk HEAD /sc,seLJDaKBog3LLEMDe8cjBefMhnVSibO4RA5boZhWcVZ0=/https://samuelclay.com/static/images/2019%20-%20Cuba.jpg
|
||||
http-check expect rstatus 200|301
|
||||
|
@ -161,12 +137,6 @@ backend node_images
|
|||
{% for host in groups.node_images %}
|
||||
server {{host}} {{host}}.node.nyc1.consul:8088
|
||||
{% endfor %}
|
||||
|
||||
backend metrics
|
||||
option httpchk GET /_haproxychk
|
||||
http-check expect rstatus 200|301
|
||||
server app-django1 app-django1.node.nyc1.consul:8000 check inter 2000ms resolvers consul resolve-prefer ipv4 resolve-opts allow-dup-ip init-addr none
|
||||
|
||||
backend node_socket
|
||||
balance roundrobin
|
||||
default-server check inter 2000ms resolvers consul resolve-prefer ipv4 resolve-opts allow-dup-ip init-addr none
|
||||
|
@ -198,6 +168,41 @@ backend node_page
|
|||
balance roundrobin
|
||||
server-template node-page 1 _node-page._tcp.service.nyc1.consul:8008 check inter 2000ms resolvers consul resolve-prefer ipv4 resolve-opts allow-dup-ip init-addr none
|
||||
|
||||
backend staging
|
||||
balance roundrobin
|
||||
option httpchk GET /_haproxychk
|
||||
default-server check inter 2000ms resolvers consul resolve-prefer ipv4 resolve-opts allow-dup-ip init-addr none
|
||||
{% for host in groups.staging %}
|
||||
server {{host}} {{host}}.node.nyc1.consul:8000
|
||||
{% endfor %}
|
||||
|
||||
backend blog
|
||||
balance roundrobin
|
||||
option httpchk GET /_nginxchk
|
||||
default-server check inter 2000ms resolvers consul resolve-prefer ipv4 resolve-opts allow-dup-ip init-addr none
|
||||
{% for host in groups.blogs %}
|
||||
server {{host}} {{host}}.node.nyc1.consul:80
|
||||
{% endfor %}
|
||||
|
||||
backend sentry
|
||||
balance roundrobin
|
||||
option httpchk GET /_health
|
||||
default-server check inter 2000ms resolvers consul resolve-prefer ipv4 resolve-opts allow-dup-ip init-addr none
|
||||
{% for host in groups.sentry %}
|
||||
server {{host}} {{host}}.node.nyc1.consul:9000
|
||||
{% endfor %}
|
||||
|
||||
backend db_metrics
|
||||
balance roundrobin
|
||||
# option httpchk GET /_haproxychk
|
||||
default-server check inter 2000ms resolvers consul resolve-prefer ipv4 resolve-opts allow-dup-ip init-addr none
|
||||
server db-grafana grafana.service.nyc1.consul:3000
|
||||
|
||||
backend metrics
|
||||
option httpchk GET /_haproxychk
|
||||
http-check expect rstatus 200|301
|
||||
server app-django1 app-django1.node.nyc1.consul:8000 check inter 2000ms resolvers consul resolve-prefer ipv4 resolve-opts allow-dup-ip init-addr none
|
||||
|
||||
backend postgres
|
||||
option httpchk GET /db_check/postgres
|
||||
default-server check inter 2000ms resolvers consul resolve-prefer ipv4 resolve-opts allow-dup-ip init-addr none
|
||||
|
@ -251,12 +256,6 @@ backend db_elasticsearch
|
|||
server {{host}} {{host}}.node.nyc1.consul:5579
|
||||
{% endfor %}
|
||||
|
||||
backend db_metrics
|
||||
balance roundrobin
|
||||
# option httpchk GET /_haproxychk
|
||||
default-server check inter 2000ms resolvers consul resolve-prefer ipv4 resolve-opts allow-dup-ip init-addr none
|
||||
server db-grafana grafana.service.nyc1.consul:3000
|
||||
|
||||
backend consul_manager
|
||||
balance roundrobin
|
||||
# option httpchk GET /_haproxychk
|
||||
|
|
Loading…
Add table
Reference in a new issue