Proxy gitea ssh through traefik.

This commit is contained in:
2023-11-22 09:33:04 +00:00
parent c741b4dd05
commit cffaf3bc3c
2 changed files with 19 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ job "gitea" {
to = 3000
}
port "ssh" {
static = 2222
to = 2222
}
}
@@ -50,6 +50,18 @@ job "gitea" {
"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",
]
}
}
}
}