Skip to content

Instantly share code, notes, and snippets.

@coeusite
Last active April 19, 2022 09:11
Show Gist options
  • Save coeusite/d4f9de68b24184be4edd6c1988a47b30 to your computer and use it in GitHub Desktop.
Save coeusite/d4f9de68b24184be4edd6c1988a47b30 to your computer and use it in GitHub Desktop.
Seafile config for caddy
# seahub
https://example.com {
tls your@email.com
gzip
proxy / 127.0.0.1:8000 {
header_upstream Host {host}
header_upstream X-Forwarded-Proto {scheme}
}
log /var/log/caddy/seahub.access.log
errors /var/log/caddy/seahub.error.log
}
# seafile
https://example.com/seafhttp {
tls your@email.com
gzip
proxy / 127.0.0.1:8082 {
without /seafhttp
transparent
}
log /var/log/caddy/seafhttp.access.log
errors /var/log/caddy/seafhttp.error.log
}
# webdav
https://example.com/seafdav {
tls your@email.com
gzip
proxy / 127.0.0.1:8080 {
without /seafdav
transparent
}
log /var/log/caddy/seafdav.access.log
errors /var/log/caddy/seafdav.error.log
}
# media
https://example.com/media {
tls your@email.com
gzip
root /opt/seafile/seafile-server-latest/seahub/media
log /var/log/caddy/media.access.log
errors /var/log/caddy/media.error.log
}
@coeusite
Copy link
Author

@vwh
Copy link

vwh commented Jun 14, 2018

Hi, I used your config file to setup a seafile server, but webdav didn't work. Can you show me your seafdav.conf? Thanks.

@xgugeng
Copy link

xgugeng commented Apr 19, 2022

Hi, I used your config file to setup a seafile server, but webdav didn't work. Can you show me your seafdav.conf? Thanks.

You might want to check my Caddyfile for Seafile. It should be caused by without /seafdav

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment