Skip to content

Instantly share code, notes, and snippets.

@xgugeng
Last active May 25, 2024 08:33
Show Gist options
  • Save xgugeng/5371031b7f3258fd39bbad98b7cc5eff to your computer and use it in GitHub Desktop.
Save xgugeng/5371031b7f3258fd39bbad98b7cc5eff to your computer and use it in GitHub Desktop.
Caddyfile for Seafile
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