Code server install on CentO7/nginx #2553
Unanswered
highosilver
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hmm yeah your configuration looks good to me. Do the NGINX error logs
say anything when you try to access the URL?
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to get code server on a VPS running CentOS 7 with an nginx reverse proxy configuration. I was able to get the install done relatively easily, however the issue I run into is when visiting my chosen domain I receive an index of page.
I think this may be due to nginx failing to pass the connection to code server on my chosen port.
/nginx/code-server.conf:
` server {
listen 80;
listen [::]:80;
} `
And /lib/systemd/system/code-server.service:
` [Unit]
Description=code-server
After=nginx.service
[Service]
Type=simple
Environment=PASSWORD=}?$C5he(!]p_#aC%
ExecStart=/usr/bin/code-server --bind-addr 127.0.0.1:4479 --user-data-dir /var/lib/code-server --auth password
Restart=always
[Install]
WantedBy=multi-user.target `
On my system I have nginx listening on ports 80 and 443, with apache listening on 8080 and 8443.
I've tried running
setsebool httpd_can_network_connect 1 -P
However it appears my host has SELinux disabled at the node level.
If I set my bind address to 0.0.0.0:Port, I can connect using my dedicated IP and the port as my URL, leading to believe my issue is with nginx passing the connection to the code-server.
Any help or insight would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions