Is there anyone that successfully got seafile working with traefik proxy in docker ? I can access seafile remotely when using labels but I can not upload anything or view anything in the label.
Below are the labels I used, any help would be great. this will be the first time I tried to get traefik to work that involves more than one port
-
traefik.enable=true
-
traefik.http.routers.seafile.rule=Host(
seafile.example.com
) -
traefik.http.services.seafile.loadbalancer.server.port=8000
-
traefik.http.routers.seafile.service=seafile
on upload/download, a request to https://seafile.example.com/seafhttp/files/xxx/xxx.xx is attempted
this needs to turn in to http://:8082:/files/xxx/xxx/xx
-
traefik.http.routers.seafhttp.rule=Host(
seafile.example.com
) && PathPrefix(/seafhttp
) -
traefik.http.services.seafhttp.loadbalancer.server.port=8082
-
traefik.http.routers.seafhttp.service=seafhttp
-
traefik.http.middlewares.sf-replacepath.replacepathregex.regex=^/seafhttp/(.*)
-
traefik.http.middlewares.sf-replacepath.replacepathregex.replacement=/$$1
-
traefik.http.routers.seafhttp.middlewares=sf-replacepath
the above worked with port 80.
#added the below to use HTTPS
to tell traefik to try get a letsencrypt cert for your domain
traefik.http.routers.seafile.tls.certresolver=letsencrypt
#[1]If you want to redirect port 80 to 443 when connecting to this domain on port 80
traefik.http.middlewares.https-redirect.redirectscheme.scheme=https
traefik.http.routers.https-redirect.entrypoints=web
traefik.http.routers.https-redirect.middlewares=https-redirect
traefik.http.routers.https-redirect.rule=Host(seafile.example.com
)