From 1abb6351634af00aafdb8fe477024755b07a0087 Mon Sep 17 00:00:00 2001 From: Daniel Heredia Date: Sat, 4 Jan 2025 02:00:52 -0500 Subject: [PATCH] add gsg-displays backend, acl, and fqdn (#71) --- ansible/roles/k8s-lb/templates/haproxy.cfg | 9 +++++++++ terraform/prod1.tfvars | 1 + 2 files changed, 10 insertions(+) diff --git a/ansible/roles/k8s-lb/templates/haproxy.cfg b/ansible/roles/k8s-lb/templates/haproxy.cfg index dbbe458..cd23d73 100644 --- a/ansible/roles/k8s-lb/templates/haproxy.cfg +++ b/ansible/roles/k8s-lb/templates/haproxy.cfg @@ -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 @@ -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 diff --git a/terraform/prod1.tfvars b/terraform/prod1.tfvars index b972e8a..3ff786b 100644 --- a/terraform/prod1.tfvars +++ b/terraform/prod1.tfvars @@ -52,4 +52,5 @@ meshdb_fqdn = [ "wiki.mesh.nycmesh.net", "los-backend.db.nycmesh.net", "mastodon.nycmesh.net", + "gsg-displays.nycmesh.net", ]