Skip to content

Commit

Permalink
Redirect as service
Browse files Browse the repository at this point in the history
  • Loading branch information
taiidani committed Aug 19, 2023
1 parent 43d4201 commit 4a9dee3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/deploy/guess-my-word.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,24 @@ job "guess-my-word" {
}
}

service {
name = "guess-my-word-redirect"
provider = "nomad"
port = "web"
tags = [
"traefik.enable=true",
"traefik.http.routers.guessredirect.rule=Host(`guess.taiidani.com`)",
"traefik.http.routers.guessredirect.middlewares=guessredirect@nomad",
"traefik.http.routers.guessredirectsecure.rule=Host(`guess.taiidani.com`)",
"traefik.http.routers.guessredirectsecure.tls=true",
"traefik.http.routers.guessredirectsecure.tls.certresolver=le",
"traefik.http.routers.guessredirectsecure.middlewares=guessredirect@nomad",
"traefik.http.middlewares.guessredirect.redirectregex.regex=^http.?://guess.taiidani.com/(.*)",
"traefik.http.middlewares.guessredirect.redirectregex.replacement=https://guessmyword.xyz/",
"traefik.http.middlewares.guessredirect.redirectregex.permanent=true",
]
}

resources {
cpu = 50
memory = 128
Expand Down

0 comments on commit 4a9dee3

Please sign in to comment.