code-server
code-server copied to clipboard
[Feat]: port proxy feature disable via cli option
Hi there,
can we add a cli option to disable the pop up on the lower right corner when web is served under a particular port ?
Or disable the whole "Ports" feature completely ?
currently the port proxy feature seems has some "relative path" issue if the code server is already behind a reverse proxy, so better to be disabled to avoid confusion.
Thanks
cc @jsjoeio @code-asher
Yes! Seems like we'd need to add a CLI flag and then use it here, with the default set to true https://github.com/coder/code-server/blob/main/patches/proxy-uri.diff#L178
Does disabling the "auto forward ports" option do anything?
Still might be a good idea to have a CLI flag to disable the proxy completely if needed for security reasons.
auto forward ports
how to use "auto forward ports" option ? is it a cli option ?
@code-asher
In your VS Code Settings:
@jsjoeio thanks for the direction, I will test it out.
but agreed, a cli option would be nicer to give user ability to turn it off on start
confirmed the auto forward ports option works.
thanks @code-asher
Moving to Backlog for now. If more people want this, we can reconsider a CLI flag.