这里根据官网所给出的配置项进行了简单修改,仅作参考
location / {
proxy_pass http://127.0.0.1:8082;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
proxy_set_header Accept-Encoding gzip;
}
code-server配置方法
修改code-server默认端口,密码
nginx 反向代理code-server
原文:https://www.cnblogs.com/moshuying/p/15240789.html