-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Access via nginx reverse proxy, 404 not found page shows randomly #773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Does your nginx config include headers to allow for websocket upgrade requests? Something like the following:
|
What browser and device are you using to access code-server? We gzip files inside of the code-server binary to make it smaller, so accessing on browsers that don't have gzip support will fail. If you're using an iPad, try the iPad OS beta. |
Hi, I'm attempting to run this on Google Cloud Shell - ideal for this type of environment.
Here's the terminal output I've gotten when trying to run the container:
Any advice on what I can do? I've attempted setting my |
What browser are you using? I doubt that google's proxy will strip Accept-Encoding headers. |
@naomi-nori I'll check about it soon. Thanks. |
@deansheather Tried on Chrome 75.0.3770.100 and Firefox 67.0.4. |
No resolution on this? |
We already have some fixes in more recent issues so closing this off. |
code-server
version: via dockerhub latest tagDescription
I pulled code-server via docker command in readme.md
docker run -it -p 127.0.0.1:8443:8443 -v "${PWD}:/home/coder/project" codercom/code-server --allow-http --no-auth
with environment optionVIRTUAL_HOST=code.example.net
for nginx reverse proxy.When I access the code page, It opens well at first time. But in case of refresh the page or open new tab both default mode and incognito mode via chrome browser, it serves 404 Not found pages.
In container logs,
Error: ENOENT: no such file or directory, open '/src/packages/server/build/web/index.html'
How can I fix it?
The text was updated successfully, but these errors were encountered: