Last active
April 19, 2022 09:11
-
-
Save coeusite/d4f9de68b24184be4edd6c1988a47b30 to your computer and use it in GitHub Desktop.
Seafile config for caddy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# seahub | |
https://example.com { | |
tls [email protected] | |
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 [email protected] | |
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 [email protected] | |
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 [email protected] | |
gzip | |
root /opt/seafile/seafile-server-latest/seahub/media | |
log /var/log/caddy/media.access.log | |
errors /var/log/caddy/media.error.log | |
} |
Hi, I used your config file to setup a seafile server, but webdav didn't work. Can you show me your seafdav.conf
? Thanks.
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
References: