sfx101 / deck

DECK is a powerful and high performant local web development studio, an open source alternative to Docker desktop
https://github.com/deck-app
GNU Affero General Public License v3.0
1.51k stars 71 forks source link

[REQUEST] Support subdomain routing #129

Open require-dev opened 1 year ago

require-dev commented 1 year ago

It would be great to support subdomain routing instead of just {domain}.stacks.run
Some projects I'm working in on use {subdomain}.{domain}.stacks.run

I'm assuming (custom) redbird resolvers would be the way forward here, but this might result in SSL certificate issues

nabad600 commented 1 year ago

@require-dev, thanks for your valuable feedback. We will definitely look into this

require-dev commented 1 year ago

Would love to help with this, but can’t seem to get Deck running from sources on my machine.

Is there a developer guide or some steps I need to go through? (running on M1 Mac)

nabad600 commented 1 year ago

Hi @require-dev, Thanks for your reply, please review the installation process.

https://www.loom.com/share/20eb23519f894a33971aaedc07b45031 Appreciate your feedback here. Let us know of any issues, we'd be happy to help.

nabad600 commented 1 year ago

Hi @require-dev, thanks for your valuable feedback Currently, multiple-layer sub-domain is not supported. (.sub-domain.stacks.run), only supported (.stacks.run), you can use *.stacks.run, i.e. {sub-domain}.stacks.run.

require-dev commented 1 year ago

Hi @nabad600, I've implemented a working solution locally which routes *.stackname.stacks.run to the correct stack backend in docker.

Check the pull request attached above for more info. Downside is that, while it does support SSL, it'll give an SSL warning about the subdomain