Pckd icon indicating copy to clipboard operation
Pckd copied to clipboard

Add multiple domain support

Open BenNotix opened this issue 2 years ago • 3 comments

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.

BenNotix avatar Apr 12 '22 19:04 BenNotix

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 avatar Apr 13 '22 08:04 Just-Moh-it

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

Just-Moh-it avatar Apr 13 '22 08:04 Just-Moh-it

+1 On this!

DrMxrcy avatar May 02 '22 21:05 DrMxrcy