Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Are there plans to add custom subdomain support to codespaces?
Or is there a way to do it now?

Our app currently determines the tenant via the subdomain: tenant.app.com so it would be great if we could define (or allow *) subdomains for the public forwarded ports that codespaces exposes.
So in addition to: <user>-<org>-<repo>-<code>-<port>.githubpreview.dev
we could also have: <tenant>.<user>-<org>-<repo>-<code>-<port>.githubpreview.dev

You must be logged in to vote

Replies: 13 comments · 3 replies

Comment options

I don't believe there is a way to handle this at present, and I don't think we could easily handle it (I assume signing certs for *.<user>-<org>-<repo>-<code>-<port>.githubpreview.dev is a pain, though maybe https://letsencrypt.org/docs/faq/#does-let-s-encrypt-issue-wildcard-certificates solves that?).

I will say we have considered custom domain support (so you could run <user>-<org>-<repo>-<code>-<port>.company.tld, though this isn't quite what you're looking for, and is potentially an easier problem to solve on our side).

You must be logged in to vote
3 replies
@billiegoose
Comment options

Just want to chime in we at Stoplight.io were also testing out CodeSpaces when they first came out, and subdomains proved our stumbling block. The first thing a new user does is create a "workspace" with our product, like your-workspace.stoplight-local.com. I'm tempted to re-engineer all our routing to support an alternate code path that doesn't relyl on subdomains just so we can use CodeSpaces, but it would be wonderful to support the tenant pattern so well-described by davidronk above out-of-the-box.

@Chuxel
Comment options

If you are using VS Code locally, you can forward the port to localhost and then update your hosts file to simulate this. If you've got your own SSL certificate, you can leave the port type as blank (or HTTP) and that cert will come across. You can also disable this setting in your VS Code settings if you prefer.

image

@PZiaugra
Comment options

We still don't have native support for this functionality?
I tried to do according to @Chuxel comment above but I didn't get success.
My scenario is very similar to @wmhilton.

Comment options

Would love to have this too. I am working on a multi tenant stack and it requires subdomains. I can forward ports locally etc.. but it would be nice to just have this ability directly inside of codespace

You must be logged in to vote
0 replies
Comment options

I would also like this - we would love to use codespaces for easy developer onboarding and teaching them how to port forward a bunch of subdomains is another onboarding task... we'd love to just have them be able to intuit how to get up and running with very few instructions

You must be logged in to vote
0 replies
Comment options

This is something I would like as well.

You must be logged in to vote
0 replies
Comment options

+1 for this feature. we have a stack of applications that rely on subdomain

You must be logged in to vote
0 replies
Comment options

would be great and allow testing oauth2 apps

You must be logged in to vote
0 replies
Comment options

We have a multitenant application reliant on subdomains. This is definitely one of the biggest drawbacks we have with Codespaces.

You must be logged in to vote
0 replies
Comment options

Has anyone managed to make progress on this?

You must be logged in to vote
0 replies
Comment options

I need subdomains as well. Our dev environment launches docker-compose with things like local stack and elasticsearch - along with our various "micro-services". Each open on port 443. We use let's encrypt to issue a wildcard domain cert on the host. This way each micro-service can talk to each other via ssl.

Not sure how we are going to do this in a Codespace...

You must be logged in to vote
0 replies
Comment options

Open issue, 30+ thumbs up, 0 fix. Classic

You must be logged in to vote
0 replies
Comment options

+1 for this feature.

You must be logged in to vote
0 replies
Comment options

+1 again! Our Laravel application's tenancy architecture relies on subdomains. Codespaces is great but this is a big stumbling block for us to widely adopt it.

You must be logged in to vote
0 replies
Comment options

Its being so long that I dont even belive they will get this

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Codespaces Your development environment, in the cloud. Run VS Code and code on GitHub's cloud platform, Product Feedback Share your thoughts and suggestions on GitHub features and improvements
Morty Proxy This is a proxified and sanitized view of the page, visit original site.