Refactor Gitea to Set Domain At Top Of File
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
locals {
|
||||
SUBDOMAIN = "git." // End with dot or leave blamk for root domain
|
||||
DOMAIN = "example.local"
|
||||
TRAEFIK_DOMAIN = "${local.SUBDOMAIN}${local.DOMAIN}"
|
||||
}
|
||||
|
||||
job "gitea" {
|
||||
datacenters = ["dc1"]
|
||||
type = "service"
|
||||
@@ -38,7 +44,7 @@ job "gitea" {
|
||||
"traefik.enable=true",
|
||||
"traefik.http.routers.gitea.tls=true",
|
||||
"traefik.http.routers.gitea.entrypoints=websecure",
|
||||
"traefik.http.routers.gitea.rule=Host(`git.example.local`)"
|
||||
"traefik.http.routers.gitea.rule=Host(`${local.TRAEFIK_DOMAIN}`)"
|
||||
]
|
||||
|
||||
check {
|
||||
|
||||
Reference in New Issue
Block a user