Proxy wordpress sites through the cloud.
This commit is contained in:
@@ -16,6 +16,9 @@ job "traefik" {
|
||||
#host_network = "tailscale"
|
||||
static = "9002"
|
||||
}
|
||||
port "http4proxy" {
|
||||
static = 10080
|
||||
}
|
||||
}
|
||||
|
||||
task "traefik" {
|
||||
@@ -52,7 +55,7 @@ job "traefik" {
|
||||
|
||||
config {
|
||||
image = "traefik:latest"
|
||||
ports = ["http", "https", "admin"]
|
||||
ports = ["http", "https", "admin", "http4proxy"]
|
||||
network_mode = "host"
|
||||
volumes = [
|
||||
"local/traefik.yml:/etc/traefik/traefik.yml",
|
||||
@@ -112,6 +115,9 @@ entryPoints:
|
||||
scheme: https
|
||||
permanent: true
|
||||
|
||||
web4proxy:
|
||||
address: ":{{{ env "NOMAD_PORT_http4proxy" }}}"
|
||||
|
||||
websecure:
|
||||
address: ":{{{ env "NOMAD_PORT_https" }}}"
|
||||
http:
|
||||
|
||||
@@ -46,9 +46,8 @@ job "wordpress" {
|
||||
|
||||
tags = [
|
||||
"traefik.enable=true",
|
||||
"traefik.http.routers.wordpress.entryPoints=websecure",
|
||||
"traefik.http.routers.wordpress.middlewares=authentik@file",
|
||||
"traefik.http.routers.wordpress.rule=Host(`wordpress.paler.net`)",
|
||||
"traefik.http.routers.wordpress.entryPoints=web4proxy",
|
||||
"traefik.http.routers.wordpress.rule=Host(`wordpress.paler.net`) || Host(`ines.paler.net`) || Host(`coachingfor.me`) || Host(`coachingfor.work`) || Host(`petru.ines.paler.net`) || Host(`liam.paler.net`) || Host(`tomas.paler.net`) || Host(`musictogethersilvercoast.pt`)",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user