Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stats domain #48

Merged
merged 2 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions ansible/roles/k8s-lb/templates/haproxy.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ frontend meshdb
acl app_letsencrypt path_beg /.well-known/acme-challenge/
use_backend be_letsencrypt if app_letsencrypt

# Stats uses a different backend
# Stats + stats-new uses a different backend
acl app_grafana hdr(host) -i stats-new.nycmesh.net
use_backend be_grafana if app_grafana

acl app_stats hdr(host) -i stats.nycmesh.net
use_backend be_grafana if app_grafana OR app_stats

# Redirect wiki.mesh.nycmesh.net to wiki.nycmesh.net
acl is_wiki_mesh hdr(host) -i wiki.mesh.nycmesh.net
http-request redirect code 302 location https://wiki.nycmesh.net%[capture.req.uri] if is_wiki_mesh
Expand Down
2 changes: 1 addition & 1 deletion terraform/prod1.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ mesh_networkrange = "24"
mesh_net_block = "10.70.90.0"
mesh_external_ip = "199.170.132.45"
# Add domains to the end
meshdb_fqdn = "wiki.nycmesh.net,wiki.mesh.nycmesh.net,db.nycmesh.net,map.db.nycmesh.net,adminmap.db.nycmesh.net,los-backend.db.nycmesh.net,los.nycmesh.net,forms.nycmesh.net,stats-new.nycmesh.net,jmstemp.mesh.nycmesh.net,map.nycmesh.net"
meshdb_fqdn = "wiki.nycmesh.net,wiki.mesh.nycmesh.net,db.nycmesh.net,map.db.nycmesh.net,adminmap.db.nycmesh.net,los-backend.db.nycmesh.net,los.nycmesh.net,forms.nycmesh.net,stats-new.nycmesh.net,jmstemp.mesh.nycmesh.net,map.nycmesh.net,stats.nycmesh.net"