EtherDream / jsproxy

An online proxy based on ServiceWorker
MIT License
9.33k stars 3.61k forks source link

能够在WEB环境安装吗? #63

Open ancct opened 5 years ago

ancct commented 5 years ago

我安装了BT面板并设置好了域名与SSL,我下一步应该怎么做?直接上传压缩包吗?

EtherDream commented 5 years ago

不能执行命令吗?

ancct commented 5 years ago

不能执行命令吗?

[jsproxy 02:16:32] 证书申请失败! [jsproxy 02:16:32] 安装完成。后续维护参考 https://github.com/EtherDream/jsproxy root@ancct:~#

EtherDream commented 5 years ago

取不到公网 IP 还是 80 端口没法使用?

ancct commented 5 years ago

取不到公网IP还是80端口没法使用?

[Tue Jun 11 02:16:29 EDT 2019] Create new order error. Le_OrderFinalize not found. { "type": "urn:ietf:params:acme:error:rejectedIdentifier", "detail": "Error creating new order :: Invalid character in DNS name", "status": 400 }

ancct commented 5 years ago

需要我把系统重做,把root发你吗?

EtherDream commented 5 years ago

先不用。应该是安装脚本有问题。。。显示获取到的公网 IP 是什么?

ancct commented 5 years ago

先不用。应该是安装脚本有问题...显示获取到的公网IP是什么?

[jsproxy 02:16:16] 自动安装脚本开始执行 [jsproxy 02:16:16] 创建用户 jsproxy ... [jsproxy 02:16:17] HTTPS 证书申请需要验证 80 端口,确保 TCP:80 已添加到防火墙 [jsproxy 02:16:17] 如果当前已有 80 端口的服务,将暂时无法收到数据 [jsproxy 02:16:17] 切换到 jsproxy 用户,执行安装脚本 ... [jsproxy 02:16:17] 下载 nginx 程序 ... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 10.6M 100 10.6M 0 0 8555k 0 0:00:01 0:00:01 --:--:-- 8560k [jsproxy 02:16:20] nginx version: openresty/1.15.8.1 [jsproxy 02:16:20] nginx path: /home/jsproxy/openresty [jsproxy 02:16:20] 下载代理服务 ... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 25526 0 25526 0 0 79080 0 --:--:-- --:--:-- --:--:-- 79273 [jsproxy 02:16:20] 下载静态资源 ... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 209k 0 209k 0 0 604k 0 --:--:-- --:--:-- --:--:-- 605k [jsproxy 02:16:20] 启动服务 ... [jsproxy 02:16:20] 服务已开启 [jsproxy 02:16:20] 服务器公网 IP 获取中,通过接口 https://api.ipify.org [jsproxy 02:16:21] 无效 IP:103.129.196.237 [jsproxy 02:16:21] 服务器公网 IP 获取中,通过接口 https://bot.whatismyipaddress.com/ [jsproxy 02:16:21] 无效 IP:2001:470:1:317:216:3eff:fe4e:b019 [jsproxy 02:16:21] 服务器公网 IP: 2001:470:1:317:216:3eff:fe4e:b019 [jsproxy 02:16:21] 安装 acme.sh 脚本 ... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 184k 100 184k 0 0 758k 0 --:--:-- --:--:-- --:--:-- 760k [Tue Jun 11 02:16:21 EDT 2019] Installing from online archive. [Tue Jun 11 02:16:21 EDT 2019] Downloading https://github.com/Neilpang/acme.sh/archive/master.tar.gz [Tue Jun 11 02:16:22 EDT 2019] Extracting master.tar.gz [Tue Jun 11 02:16:22 EDT 2019] It is recommended to install socat first. [Tue Jun 11 02:16:22 EDT 2019] We use socat for standalone server if you use standalone mode. [Tue Jun 11 02:16:22 EDT 2019] If you don't use standalone mode, just ignore this warning. [Tue Jun 11 02:16:22 EDT 2019] Installing to /home/jsproxy/.acme.sh [Tue Jun 11 02:16:22 EDT 2019] Installed to /home/jsproxy/.acme.sh/acme.sh [Tue Jun 11 02:16:22 EDT 2019] Installing alias to '/home/jsproxy/.profile' [Tue Jun 11 02:16:22 EDT 2019] OK, Close and reopen your terminal to start using acme.sh [Tue Jun 11 02:16:22 EDT 2019] Installing cron job no crontab for jsproxy no crontab for jsproxy [Tue Jun 11 02:16:22 EDT 2019] Good, bash is found, so change the shebang to use bash as preferred. [Tue Jun 11 02:16:23 EDT 2019] OK [Tue Jun 11 02:16:23 EDT 2019] Install success! [jsproxy 02:16:23] 尝试为域名 2001:470:1:317:216:3eff:fe4e:b019.xip.io 申请证书 ... [Tue Jun 11 02:16:25 EDT 2019] Create account key ok. [Tue Jun 11 02:16:25 EDT 2019] Registering account [Tue Jun 11 02:16:26 EDT 2019] Registered [Tue Jun 11 02:16:26 EDT 2019] ACCOUNT_THUMBPRINT='R7gsOlx9WKoqLWw-hOQNqLZ0HDOuC3DcgH6iZk5pPpk' [Tue Jun 11 02:16:26 EDT 2019] Creating domain key [Tue Jun 11 02:16:26 EDT 2019] The domain key is here: /home/jsproxy/.acme.sh/2001:470:1:317:216:3eff:fe4e:b019.xip.io_ecc/2001:470:1:317:216:3eff:fe4e:b019.xip.io.key [Tue Jun 11 02:16:26 EDT 2019] Single domain='2001:470:1:317:216:3eff:fe4e:b019.xip.io' [Tue Jun 11 02:16:26 EDT 2019] Getting domain auth token for each domain [Tue Jun 11 02:16:27 EDT 2019] Create new order error. Le_OrderFinalize not found. { "type": "urn:ietf:params:acme:error:rejectedIdentifier", "detail": "Error creating new order :: Invalid character in DNS name", "status": 400 } [Tue Jun 11 02:16:27 EDT 2019] Please add '--debug' or '--log' to check more details. [Tue Jun 11 02:16:27 EDT 2019] See: https://github.com/Neilpang/acme.sh/wiki/How-to-debug-acme.sh [Tue Jun 11 02:16:27 EDT 2019] Installing key to:server/cert/2001:470:1:317:216:3eff:fe4e:b019.xip.io/ecc.key [Tue Jun 11 02:16:27 EDT 2019] Installing full chain to:server/cert/2001:470:1:317:216:3eff:fe4e:b019.xip.io/ecc.cer cat: '/home/jsproxy/.acme.sh/2001:470:1:317:216:3eff:fe4e:b019.xip.io_ecc/fullchain.cer': No such file or directory [jsproxy 02:16:27] 证书申请失败! [jsproxy 02:16:27] 尝试为域名 2001:470:1:317:216:3eff:fe4e:b019.nip.io 申请证书 ... [Tue Jun 11 02:16:28 EDT 2019] Creating domain key [Tue Jun 11 02:16:28 EDT 2019] The domain key is here: /home/jsproxy/.acme.sh/2001:470:1:317:216:3eff:fe4e:b019.nip.io_ecc/2001:470:1:317:216:3eff:fe4e:b019.nip.io.key [Tue Jun 11 02:16:28 EDT 2019] Single domain='2001:470:1:317:216:3eff:fe4e:b019.nip.io' [Tue Jun 11 02:16:28 EDT 2019] Getting domain auth token for each domain [Tue Jun 11 02:16:29 EDT 2019] Create new order error. Le_OrderFinalize not found. { "type": "urn:ietf:params:acme:error:rejectedIdentifier", "detail": "Error creating new order :: Invalid character in DNS name", "status": 400 } [Tue Jun 11 02:16:29 EDT 2019] Please add '--debug' or '--log' to check more details. [Tue Jun 11 02:16:29 EDT 2019] See: https://github.com/Neilpang/acme.sh/wiki/How-to-debug-acme.sh [Tue Jun 11 02:16:29 EDT 2019] Installing key to:server/cert/2001:470:1:317:216:3eff:fe4e:b019.nip.io/ecc.key [Tue Jun 11 02:16:29 EDT 2019] Installing full chain to:server/cert/2001:470:1:317:216:3eff:fe4e:b019.nip.io/ecc.cer cat: '/home/jsproxy/.acme.sh/2001:470:1:317:216:3eff:fe4e:b019.nip.io_ecc/fullchain.cer': No such file or directory [jsproxy 02:16:29] 证书申请失败! [jsproxy 02:16:29] 尝试为域名 2001:470:1:317:216:3eff:fe4e:b019.sslip.io 申请证书 ... [Tue Jun 11 02:16:30 EDT 2019] Creating domain key [Tue Jun 11 02:16:30 EDT 2019] The domain key is here: /home/jsproxy/.acme.sh/2001:470:1:317:216:3eff:fe4e:b019.sslip.io_ecc/2001:470:1:317:216:3eff:fe4e:b019.sslip.io.key [Tue Jun 11 02:16:30 EDT 2019] Single domain='2001:470:1:317:216:3eff:fe4e:b019.sslip.io' [Tue Jun 11 02:16:31 EDT 2019] Getting domain auth token for each domain [Tue Jun 11 02:16:31 EDT 2019] Create new order error. Le_OrderFinalize not found. { "type": "urn:ietf:params:acme:error:rejectedIdentifier", "detail": "Error creating new order :: Invalid character in DNS name", "status": 400 } [Tue Jun 11 02:16:31 EDT 2019] Please add '--debug' or '--log' to check more details. [Tue Jun 11 02:16:31 EDT 2019] See: https://github.com/Neilpang/acme.sh/wiki/How-to-debug-acme.sh [Tue Jun 11 02:16:32 EDT 2019] Installing key to:server/cert/2001:470:1:317:216:3eff:fe4e:b019.sslip.io/ecc.key [Tue Jun 11 02:16:32 EDT 2019] Installing full chain to:server/cert/2001:470:1:317:216:3eff:fe4e:b019.sslip.io/ecc.cer cat: '/home/jsproxy/.acme.sh/2001:470:1:317:216:3eff:fe4e:b019.sslip.io_ecc/fullchain.cer': No such file or directory [jsproxy 02:16:32] 证书申请失败! [jsproxy 02:16:32] 安装完成。后续维护参考 https://github.com/EtherDream/jsproxy root@ancct:~#

EtherDream commented 5 years ago

应该是 ipcalc 命令不存在吧~ 这个问题之前发现了,我更新下安装脚本。。。

EtherDream commented 5 years ago

现在再试试?

ancct commented 5 years ago

现在再试试?

[Tue Jun 11 05:05:22 EDT 2019] 103.129.196.237.sslip.io:Verify error:Fetching http://103.129.196.237.sslip.io/.well-known/acme-challenge/uy53FO-LbtG4motI52OuPMpGQ8h4_TvfmvfcjopdR8Y: Timeout during connect (likely firewall problem) [Tue Jun 11 05:05:22 EDT 2019] Please add '--debug' or '--log' to check more details. [Tue Jun 11 05:05:22 EDT 2019] See: https://github.com/Neilpang/acme.sh/wiki/How-to-debug-acme.sh

EtherDream commented 5 years ago

80 端口貌似被 Web 服务占用了。执行 iptables -t nat -I PREROUTING 1 -p tcp --dport 80 -j REDIRECT --to-ports 10080,然后看 http://103.129.196.237.sslip.io/.well-known/acme-challenge/test.txt 能访问吗?

ancct commented 5 years ago

80 端口貌似被 Web 服务占用了。执行 iptables -t nat -I PREROUTING 1 -p tcp --dport 80 -j REDIRECT --to-ports 10080,然后看 http://103.129.196.237.sslip.io/.well-known/acme-challenge/test.txt 能访问吗?

重做系统后我凌乱了 -bash: curl: command not found 我在vultr可以装上,但是这家的就不行

EtherDream commented 5 years ago

有些系统没有 curl,装一个就好了

ancct commented 5 years ago

感谢

------------------ 原始邮件 ------------------ 发件人: "EtherDream"notifications@github.com; 发送时间: 2019年6月11日(星期二) 下午5:41 收件人: "EtherDream/jsproxy"jsproxy@noreply.github.com; 抄送: "1051909606"1051909606@qq.com;"Author"author@noreply.github.com; 主题: Re: [EtherDream/jsproxy] 能够在WEB环境安装吗? (#63)

有些系统没有 curl,装一个就好了

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.