Question: Using code-server with nginx and base path appended #1739
-
I expose (old) code-server via nginx, with the base path set. (e.g. expose code-server at |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
cc @code-asher |
Beta Was this translation helpful? Give feedback.
-
@nao20010128nao if code server doesn't have the ability to set base path, you can always setup nginx to rewrite requests. |
Beta Was this translation helpful? Give feedback.
-
See the Deep Ocean tutorial I put in #1741 |
Beta Was this translation helpful? Give feedback.
-
Yup, the critical part is the trailing slash on
That's what makes nginx rewrite the URL without the base path. |
Beta Was this translation helpful? Give feedback.
-
Makes sense, all our links are relative otherwise so that's why |
Beta Was this translation helpful? Give feedback.
Yup, the critical part is the trailing slash on
proxy_pass
.That's what makes nginx rewrite the URL without the base path.