Skip to content

Commit

Permalink
add gsg-displays backend, acl, and fqdn (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhmetro authored Jan 4, 2025
1 parent 0d70359 commit 1abb635
Show file tree
Hide file tree
Showing 2 changed files with 10 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 @@ -62,6 +62,10 @@ frontend meshdb
http-request set-header X-Forwarded-For %[src] if app_mastodon
http-request set-header host mastodon.nycmesh.net if app_mastodon

# GSG Displays Backend
acl app_gsg-displays hdr(host) -i gsg-displays.nycmesh.net
use_backend be_gsg-displays if app_gsg-displays

# 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 Expand Up @@ -100,6 +104,11 @@ backend be_mastodon
mode http
server srv_mastodon 10.70.187.12:80

backend be_gsg-displays
log global
mode http
server srv_gsg-displays 10.70.185.250:80

# Expose metrics locally for DD
frontend prometheus
bind 127.0.0.1:8405
Expand Down
1 change: 1 addition & 0 deletions terraform/prod1.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,5 @@ meshdb_fqdn = [
"wiki.mesh.nycmesh.net",
"los-backend.db.nycmesh.net",
"mastodon.nycmesh.net",
"gsg-displays.nycmesh.net",
]

0 comments on commit 1abb635

Please sign in to comment.