Skip to content

Commit

Permalink
haproxy
Browse files Browse the repository at this point in the history
  • Loading branch information
james-otten committed Dec 30, 2024
1 parent fddffbe commit fbeadcf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ansible/roles/k8s-lb/templates/haproxy.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ frontend meshdb
acl app_grafana hdr(host) -i stats-new.nycmesh.net
acl app_stats hdr(host) -i stats.nycmesh.net
use_backend be_grafana if app_grafana OR app_stats

# Mastodon to unique backend
acl app_mastodon hdr(host) -i mastodon.nycmesh.net
use_backend be_mastodon if app_mastodon

# Redirect wiki.mesh.nycmesh.net to wiki.nycmesh.net
acl is_wiki_mesh hdr(host) -i wiki.mesh.nycmesh.net
Expand Down Expand Up @@ -87,6 +91,11 @@ backend be_grafana
mode http
server srv_grafana 10.70.90.82:3000

backend be_mastodon
log global
mode https
server srv_mastodon 199.170.132.101

# Expose metrics locally for DD
frontend prometheus
bind 127.0.0.1:8405
Expand Down

0 comments on commit fbeadcf

Please sign in to comment.