本帖最後由 kingwilliam 於 2019-3-27 23:49 編輯
回復 62# 角色
手機不用改變,但server side config.json 要配合caddy作出變更. 電子證書由 v2ray 搬上 caddy.
如server side正常ws+tls- "streamSettings": {
- "network": "ws",
- "wsSettings": {
- "path": "/vpath2/"
- },
- "security": "tls",
- "tlsSettings": {
- "certificates": [
- {
- "certificateFile": "/etc/v2ray/cert/cert.crt",
- "keyFile": "/etc/v2ray/cert/cert.key"
- }
- ]
- }
- }
複製代碼 如ws+tls+caddy時
Caddyfile- mydomain.com
- {
- proxy /vpath2/ localhost:44301 {
- websocket
- header_upstream -Origin
- }
- tls /etc/ssl/caddy/cert.crt /etc/ssl/caddy/cert.key
- root /var/www/mysite
- }
複製代碼 如ws+tls+caddy時
config.json- "streamSettings": {
- "network": "ws",
- "wsSettings": {
- "path": "/vpath2/"
- }
- }
複製代碼 |