Proxy gitea ssh through traefik.
This commit is contained in:
@@ -7,7 +7,7 @@ job "gitea" {
|
|||||||
to = 3000
|
to = 3000
|
||||||
}
|
}
|
||||||
port "ssh" {
|
port "ssh" {
|
||||||
static = 2222
|
to = 2222
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -50,6 +50,18 @@ job "gitea" {
|
|||||||
"traefik.http.routers.gitea.middlewares=authentik@file",
|
"traefik.http.routers.gitea.middlewares=authentik@file",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
service {
|
||||||
|
name = "gitea-ssh"
|
||||||
|
port = "ssh"
|
||||||
|
|
||||||
|
tags = [
|
||||||
|
"traefik.enable=true",
|
||||||
|
"traefik.tcp.routers.gitea-ssh.rule=HostSNI(`*`)",
|
||||||
|
"traefik.tcp.routers.gitea-ssh.entryPoints=ssh",
|
||||||
|
"traefik.tcp.routers.gitea-ssh.service=gitea-ssh",
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,6 +9,9 @@ job "traefik" {
|
|||||||
port "https" {
|
port "https" {
|
||||||
static = "443"
|
static = "443"
|
||||||
}
|
}
|
||||||
|
port "ssh" {
|
||||||
|
static = "2222"
|
||||||
|
}
|
||||||
port "admin" {
|
port "admin" {
|
||||||
#host_network = "tailscale"
|
#host_network = "tailscale"
|
||||||
static = "9002"
|
static = "9002"
|
||||||
@@ -117,6 +120,9 @@ entryPoints:
|
|||||||
|
|
||||||
admin:
|
admin:
|
||||||
address: ":{{{ env "NOMAD_PORT_admin" }}}"
|
address: ":{{{ env "NOMAD_PORT_admin" }}}"
|
||||||
|
|
||||||
|
ssh:
|
||||||
|
address: ":{{{ env "NOMAD_PORT_ssh" }}}"
|
||||||
EOH
|
EOH
|
||||||
destination = "local/traefik.yml"
|
destination = "local/traefik.yml"
|
||||||
change_mode = "noop"
|
change_mode = "noop"
|
||||||
|
|||||||
Reference in New Issue
Block a user