Preface#
Heroku no longer supports free accounts. This project is a combination of Xray core and supports the setup process and client configuration of vless-ws, vmess-ws, trojan-ws, shadowsocks-ws, and socks5-ws.
Preparation#
- Heroku account (paid)
- GitHub account
- Cloudflare account
Setup#
- Fork the project --> Github
- Copy the link in the browser: https://dashboard.heroku.com/new?template= and add the project address link uploaded to GitHub. Press enter to enter the Heroku parameter setting page.
- Heroku app name and country can be arbitrary.
- UUID is a required field, other fields can be left unchanged. It is recommended to use tools like V2rayN to generate UUID. Click "Deploy app" and installation will be completed in a few seconds.
- If the Heroku local domain (app.heroku.com) shows a blank page, then it is successful.
- Go to Cloudflare, create a workers proxy, and modify the configuration to the proxy code of the GitHub page.
- Click "Send" and if it returns "200 OK", then it is successful.
- Proxy client configuration
For iOS, you can use Shadowrocket. For Android, it is recommended to use V2rayNG or Kitsunebi.
Protocol: (vless/vmess/trojan)-ws
Address: app.heroku.com (optional IP/domain)
Port: 443
User ID/Password: Custom UUID
Transport Protocol: ws
Disguise host: app.heroku.com (workers or pages proxy/custom domain)
Path: /CustomUUID-ProtocolFirstTwoLowercaseLetters
Transport Security: tls
SNI: app.heroku.com (workers or pages proxy/custom domain)
Other settings can be left as default!
For shadowsocks-ws and socks5-ws, it is recommended to use Kitsunebi, which has simple configuration and does not require plugin.
Protocol: (shadowsocks/socks5)-ws
Address: app.heroku.com (optional IP/domain)
Port: 443
Shadowsocks password: Custom UUID
Shadowsocks encryption method: chacha20-ietf-poly1305 (default)
Socks5 username: empty
Socks5 password: empty
Transport Protocol: ws
Disguise host: app.heroku.com (workers or pages proxy/custom domain)
Path: /CustomUUID-ProtocolFirstTwoLowercaseLetters
Transport Security: tls
SNI (Certificate Domain): app.heroku.com (workers or pages proxy/custom domain)
Other settings can be left as default!