onplus / v2hero

All Free . Deploy V2Ray to Heroku . v2ray学习参考
MIT License
474 stars 1.17k forks source link

I tried to deploy the v2hero to heroku #1

Closed alexya closed 6 years ago

alexya commented 6 years ago
  1. generate an uuid by www.uuidgenerator.net as my id
  2. alterId is default, 64
  3. no set server port, but I used 80
  4. I use v2rayW as client and config as above
  5. Use travis-ci to build and deploy to heroku
    2017-11-29T07:12:15.202733+00:00 heroku[web.1]: Restarting
    2017-11-29T07:12:15.204733+00:00 heroku[web.1]: State changed from up to starting
    2017-11-29T07:12:15.891950+00:00 heroku[web.1]: Stopping all processes with SIGTERM
    2017-11-29T07:12:15.994953+00:00 heroku[web.1]: Process exited with status 143
    2017-11-29T07:12:16.486949+00:00 heroku[web.1]: Starting process with command `/bin/sh -c /entrypoint.sh`
    2017-11-29T07:12:18.557724+00:00 app[web.1]: V2Ray v2.51 (One for all) 20171123
    2017-11-29T07:12:18.557741+00:00 app[web.1]: An unified platform for anti-censorship.
    2017-11-29T07:12:18.605980+00:00 app[web.1]: 2017/11/29 07:12:18 [Debug]App|Proxyman|Inbound: creating tcp worker on 0.0.0.0:45009
    2017-11-29T07:12:18.606325+00:00 app[web.1]: 2017/11/29 07:12:18 [Warning]Core: V2Ray started
    2017-11-29T07:12:20.234324+00:00 heroku[web.1]: State changed from starting to up

But I still failed to connect to Facebook when using this v2ray server. I am not sure where I made a mistake and how to troubleshoot. Any help will be much appreciated.

p.s Chrome + SwitchyOmega v2rayW image

p.s2 I am not sure if it is caused by the CONFIG_JSON1 missing port number. {"log":{"loglevel":"warning"},"inbound":{"protocol":"vmess","port":

onplus commented 6 years ago

default server: vmess+ websocket (ws) , 443 with tls , 80 without tls

image

onplus commented 6 years ago

https://github.com/onplus/v2hero/blob/ci/entrypoint.sh

config1+$PORT+config2+uuid+config3 = config.json

The web process must listen for HTTP traffic on $PORT, which is set by Heroku

image

alexya commented 6 years ago

大兄弟,如果按照你的设定/提示,v2rayW端口设置为443,transport settings设置TLS->enabled=true,就连接不上。 但,我尝试了一下,v2rayW端口设置为80,transport settings设置TLS->enabled=false,就是可以的。

似乎哪里还是有不对的地方......

p.s. 参考你你在issue-119里面的设置,不能工作,难道是我的v2rayW有问题?得换个客户端...... (https://github.com/onplus/shadowsocks-heroku/issues/119) image

alexya commented 6 years ago

我换了一个客户端,v2rayN,然后,我部署的heroku v2ray 服务器就可以正常工作了。 看来,v2rayW有点儿问题! 谢谢!