Just-Moh-it / Pckd

The ⚡️ analytics-intensive, self-hostable link-shortener with a beautiful UI | AKA free bit.ly alternative 🚀
https://docs.pckd.me/
MIT License
783 stars 95 forks source link

Add multiple domain support #14

Open BenNotix opened 2 years ago

BenNotix commented 2 years ago

I think it would be interesting to have the ability to manage multiple redirect domains from a single Pckw instance. For example, we could manage all domains of the instance as administrators from the panel (see issue #13). This can be useful in many situations, instead of having to host several instances for several domains.

Just-Moh-it commented 2 years ago

Actually, you could point the domain to the Pckd instance's port using something like Nginx proxy pass. For example, having Pckd running on port 4000 and pointing nginx to proxy pass both domains to the same port, will make it work. The frontend dynamically queries the backend based on the current domain you're requesting from.

Just-Moh-it commented 2 years ago

However, I guess you're asking for different behavior based on different domains. Like you could use a common account, and have the domains configured such that /something requested through one domain returns url1 redirect and when requested through another domain redirects to url2.

This is definitely a great addition, and will be implemented once the admin panel is all setup. It will also help to stand out among different URL shorteners out there. If that's what you're asking for, thanks for the suggestion

DrMxrcy commented 2 years ago

+1 On this!