From 38c8873e74dece112de6ad983aa8a31f8c57b884 Mon Sep 17 00:00:00 2001 From: Gavin Holahan Date: Sun, 26 Jan 2025 19:51:23 +0000 Subject: [PATCH] Minor Changes --- jobs/services/mixpost.hcl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/jobs/services/mixpost.hcl b/jobs/services/mixpost.hcl index 3220876..ae58506 100644 --- a/jobs/services/mixpost.hcl +++ b/jobs/services/mixpost.hcl @@ -2,6 +2,10 @@ job "mixpost" { datacenters = ["aperture"] type = "service" + meta { + domain = "mixpost.redbrick.dcu.ie" + } + group "mixpost" { network { port "http" { @@ -24,7 +28,7 @@ job "mixpost" { tags = [ "traefik.enable=true", "traefik.port=${NOMAD_PORT_http}", - "traefik.http.routers.mixpost.rule=Host(`mixpost.redbrick.dcu.ie`)", + "traefik.http.routers.mixpost.rule=Host(`${NOMAD_META_domain}`)", "traefik.http.routers.mixpost.entrypoints=web,websecure", "traefik.http.routers.mixpost.tls.certresolver=lets-encrypt", "traefik.http.routers.mixpost.tls.certresolver=mytlschallenge", @@ -54,7 +58,7 @@ APP_NAME=MIXPOST APP_KEY={{ key "mixpost/APP_KEY" }} APP_DEBUG=true -APP_DOMAIN=mixpost.redbrick.dcu.ie +APP_DOMAIN=${NOMAD_META_domain} APP_URL=https://${APP_DOMAIN} DB_HOST={{ env "NOMAD_IP_db" }} @@ -109,8 +113,6 @@ EOH template { data = <