Thanks for the suggestion — I’ve already tried using NC_DOMAIN=client1.example.com, and it works fine for a single domain. However, the proposed solution of running one HPB instance per domain is not scalable for our use case.
We’re running a multi-tenant Nextcloud deployment where each client has their own subdomain, and the number of clients is growing. Maintaining a separate HPB container for every subdomain quickly becomes unmanageable and resource-heavy.
What we need is a scalable setup with:
One shared HPB instance
Support for multiple subdomains
Possibly through wildcard domain support (e.g., *.example.com)
Or at least relaxed hostname validation in HPB or an official method to proxy all requests properly
Please let me know if:
There is an official or unofficial workaround for this
Wildcard support is on the roadmap
Disabling or customizing the hostname check is safe and recommended in production
We’re happy to explore reverse proxy-based solutions or even patching if required, but official support for multi-subdomain HPB would make scaling much smoother.
I’m not aware of an official workaround for this (talking about aio-talk).
But you can workaround by creating your own start.sh with multiple backends. Just add your backends to it and use this modified start.sh as entrypoint of your container.
If you are using a modified entrypoint, you’ll probably need to add supervisord CMD to your docker run too.