Some Seafile wizardry to bypass ipv4 only limitations

This commit is contained in:
Quentin 2020-10-28 22:57:41 +01:00
parent ed3ed5e2e4
commit bf58bd2a2c
2 changed files with 39 additions and 26 deletions

View file

@ -2,7 +2,7 @@
port = 12001
[fileserver]
port = 8082
port = 8083
max_upload_size=8192
max_download_dir_size=8192

View file

@ -9,6 +9,44 @@ job "seafile" {
group "main" {
count = 1
task "hack" {
driver = "docker"
config {
image = "alpine/socat:1.0.5"
network_mode = "host"
command = "tcp6-listen:8085,fork,reuseaddr"
args = [ "tcp-connect:127.0.0.1:8083" ]
}
resources {
memory = 10
}
service {
tags = [
"seafile",
"traefik.enable=true",
"traefik.frontend.entryPoints=https,http",
"traefik.frontend.rule=Host:cloud.deuxfleurs.fr;PathPrefixStrip:/seafhttp"
]
port = 8085
address_mode = "driver"
name = "seafhttp"
check {
type = "tcp"
port = 8085
address_mode = "driver"
interval = "60s"
timeout = "5s"
check_restart {
limit = 3
grace = "90s"
ignore_warnings = false
}
}
}
}
task "server" {
driver = "docker"
config {
@ -61,31 +99,6 @@ job "seafile" {
}
}
service {
tags = [
"seafile",
"traefik.enable=true",
"traefik.frontend.entryPoints=https,http",
"traefik.frontend.rule=Host:cloud.deuxfleurs.fr;PathPrefixStrip:/seafhttp"
]
port = 8082
address_mode = "driver"
name = "seafhttp"
check {
type = "tcp"
port = 8082
address_mode = "driver"
interval = "60s"
timeout = "5s"
check_restart {
limit = 3
grace = "90s"
ignore_warnings = false
}
}
}
service {
tags = [
"seafile",