KOYEB部署webssh支持IPv6
koyeb 平台 fly.io 平台 支持 IPv6
Koyeb
run comad: python run.py --xsrf=False --xheaders=False --origin='*' --debug --delay=6
update Dockerfile:
update webssh/webssh/settings.py, add 'utf-8'防止中文出现乱码
huashengdun/websshpython run.py --xsrf=False --xheaders=False --origin='*' --debug --delay=6
cf cdn:
export default {
async fetch(request, env, ctx) {
let url = new URL(request.url);
if(url.pathname.startsWith('/')){
url.hostname="***.koyeb.app"; // 修改成自己的节点IP/域名
let new_request = new Request(url, request)
return await fetch(new_request)
}
return await env.ASSETS.fetch(request);
},
};
Comments
Post a Comment