逐梦者
逐梦者

部署在线版本vscode给ipad等移动设备使用

部署在线版本vscode给ipad等移动设备使用

项目名称是 CodeServer

https://github.com/cdr/code-server


上传到指定文件夹后解压

cd 到路径

./code-server --port 8080 --host 0.0.0.0 --auth password

密码是明文

https://www.xnpu.top/wp-content/uploads/2021/04/Snipaste_2021-04-25_23-10-33.png

配置文件路径  /root/.config/code-server  

关于ssl

需要使用NGINX反向代理内网地址

代理配置必须加上两行,否则白屏无法加载

            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection upgrade; 
https://www.xnpu.top/wp-content/uploads/2021/04/Snipaste_2021-04-26_00-18-30.png
套上CDN 如此
https://www.xnpu.top/wp-content/uploads/2021/04/Snipaste_2021-04-26_00-20-44.png
# # # #
首页      文章      分享      部署在线版本vscode给ipad等移动设备使用

发表回复

textsms
account_circle
email

Captcha Code

逐梦者

部署在线版本vscode给ipad等移动设备使用
项目名称是 CodeServer https://github.com/cdr/code-server 上传到指定文件夹后解压 cd 到路径 ./code-server --port 8080 --host 0.0.0.0 --auth password 密码是…
扫描二维码继续阅读
2021-04-25