I have installed code-server on my Plesk VPS, and i was wondering how to expose it to the outside world using a reverse proxy. Currently code-server is bound to 127.0.0.1:8080, and if i use wget via SSH i get the expected page. How do i go about exposing code-server to the internet (using reverse proxy) on Plesk/CentOS
I’ve tried using vhost_nginx.config file but to no luck
location ~ / {
proxy_pass http://localhost:8080;
proxy_read_timeout 90;
}
You can try using my nginx config, change app URL and app port if needed, put it in
/etc/nginx/sites-availablethan usesymlinkto/etc/nginx/sites-enabled, and don't forget to restart nginx.