Last active
October 6, 2024 21:23
-
-
Save xgugeng/5371031b7f3258fd39bbad98b7cc5eff to your computer and use it in GitHub Desktop.
Caddyfile for Seafile
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
seafile.example.com { | |
log { | |
output file /var/log/caddy/seafile.log | |
} | |
# Optional for Cloudflare | |
tls { | |
dns cloudflare {env.CF_API_TOKEN} | |
} | |
reverse_proxy localhost:8000 | |
handle_path /seafhttp* { | |
reverse_proxy localhost:8082 | |
} | |
# Use handle to keep prefix | |
handle /seafdav* { | |
reverse_proxy localhost:8899 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment