added traefik map to 3000

This commit is contained in:
leath-dub 2023-10-05 19:01:22 +01:00
parent 8b33e2b0a2
commit 7f579e9a9d

View file

@ -8,12 +8,10 @@ job "nginx-ams" {
network { network {
port "http" { port "http" {
static = 80
to = 3000 to = 3000
} }
port "https" { port "https" {
static = 443
to = 3000 to = 3000
} }
} }
@ -32,6 +30,7 @@ job "nginx-ams" {
"traefik.http.routers.nginx-ams.rule=Host(`amikon.me`,`www.amikon.me`)", "traefik.http.routers.nginx-ams.rule=Host(`amikon.me`,`www.amikon.me`)",
"traefik.http.routers.nginx-ams.entrypoints=web,websecure", "traefik.http.routers.nginx-ams.entrypoints=web,websecure",
"traefik.http.routers.nginx-ams.tls.certresolver=lets-encrypt" "traefik.http.routers.nginx-ams.tls.certresolver=lets-encrypt"
"traefik.http.routers.nginx-ams.loadbalancer.server.port=${NOMAD_PORT_http}"
] ]
} }