Allow Seafile to work with multiple domains

Hi developers. Seafile is a great product with high performance and lots of useful features. However, can you please make it work on multiple domains. I want to have a primary domain, which is accessible on the Internet (through Cloudflare Tunnel) so I can send it to my friends, but also accessible on a local domain so my computer can sync to SeaDrive through that local domain, without going through the Cloudflare proxy. Thanks!

Currently, Seafile does not natively support multiple domains on a single instance. This is because Seafile relies on a single configured hostname to consistently generate sharing links and display information correctly in the Web UI.

While you can configure a reverse proxy to forward traffic from different domains, Seafile will still use the primary configured hostname for all internal links, which often leads to synchronization or link issues when accessed via an alternative domain.

To achieve your goal of accessing Seafile locally without going through the Cloudflare proxy while using the same domain, the recommended approach is to use Split-Brain DNS. With this setup:

  1. You use the same domain name (e.g., seafile.example.com) for both local and external access.
  2. In your local network, you configure a DNS server (like Pi-hole, AdGuard Home, or your router) to resolve that domain directly to the local IP of your Seafile server.
  3. Outside your network, the public DNS (Cloudflare) handles the resolution.

This allows your clients to work seamlessly regardless of your location without needing multiple domain configurations in Seafile.

2 Likes

Alright, thanks for your solution!