I am new to Seafile and excited about self-hosting my own cloud. When I discovered Seafile, I liked its features and decided to set it up.
Currently, I have a server running Proxmox, where I created an LXC container with Ubuntu and Docker installed. Additionally, I have a Raspberry Pi running AdGuard Home, Nginx Proxy Manager, and a Cloudflare Tunnel.
Following the Seafile documentation (version 12.0), I managed to set up the server successfully. Everything works fine on my local network—I can access the server via its LAN IP and even installed OnlyOffice for editing documents within the web interface.
Now, I want to access my cloud from outside my home. To achieve this, I purchased a domain, set up a Cloudflare Tunnel, and hosted it on my Raspberry Pi.
This is where I’m stuck. Despite trying multiple approaches, I can’t access Seafile using my domain:
I attempted to configure local DNS records to enable HTTPS and obtain a certificate—failed.
I modified the seahub_settings.py and seafile.yml files to enable HTTPS—still failed.
I tried using HTTP-only with DNS records—no success.
At this point, I’m unsure what to try next. If anyone has faced a similar issue or can provide guidance, I would greatly appreciate it.
I had hoped that someone who knew more about cloudflare would have an answer for you. I have read a bit about how the cloudflare thing works, but I haven’t actually used it. (I read enough to find out it wouldn’t work for my project).
Cloudflare is basically being a complicated reverse proxy. It can be hard to have a reverse proxy point to another reverse proxy. It can be hard to tell which one caused something to happen, and you can get stuck in weird patterns. So you probably want to not point the cloudflare thing at caddy, but instead just point it to the seafile server.
Like I said, I haven’t used the cloudflare proxy, but I will try to help as much as I can. If you get it as close as you can and post detailed description of what’s not working, (error messages you get, lines from the log files, etc) I or someone else here might be able to help.