Skip to content

Support for --root-path argument #4626

Answered by jsjoeio
GokulNC asked this question in Q&A
Discussion options

You must be logged in to vote

Hmmm...I believe this already works with something like Caddy. Here's an example:

  1. create a Caddyfile
http://localhost:8082/code/* {
  uri strip_prefix /code
  reverse_proxy 127.0.0.1:8080
}
  1. start code-server with code-server
  2. caddy run to start Caddy
  3. Go to http://localhost:8082/code/login and then login
  4. Access code-server like normal

Is this what you want or am I missing something?

fix this initial redirection issue

I wasn't sure about this part but maybe that's something we can add to the Caddyfile

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@GokulNC
Comment options

@jsjoeio
Comment options

Answer selected by GokulNC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
feature New user visible feature
2 participants
Converted from issue

This discussion was converted from issue #4625 on December 15, 2021 17:03.