Proxy wordpress sites through the cloud.

This commit is contained in:
2024-01-03 20:56:27 +00:00
parent 2c4f236e2b
commit 048f783f89
4 changed files with 130 additions and 4 deletions

View File

@@ -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: