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/webssh

python 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

Popular posts from this blog

CF优选IP和反代IP的方法总结

免费VPN-2 ]通过Workers脚本部署设置,手把手带您实现免费高速科学上网,无障碍访问奈菲,ChatGPT