本帖最後由 kingwilliam 於 2019-3-22 21:19 編輯
回復 23# slemon
c hing 以下代碼是server side ws+tls config 給參考, cert.crt and cert.key 就是證書和密匙.
domain :
最好有一個 domain, 退一步 dyndns, no-ip 都可以.
certificate :
- 證書可以用 Let's Encrypt, 可到 SSL For Free 申請, 如真的不能提供 http / ftp. 可退一步用self sign cert.
- cert.crt and cert.key 可放到/etc/v2ray/ folder, 即config.json同一個folder
self sign cert :
可到以下 網址 參考
Remarks :
如用merlin, 建議準備 u盘 (8g已可以), 用作 swap
參考 網址
server side ws+tls config- //ws-tls main port 443
- {
- "protocol": "vmess",
- "port": 443,
- "settings": {
- "clients": [
- {
- "id": "id",
- "alterId": 64
- }
- ]
- },
- "streamSettings": {
- "network": "ws",
- "wsSettings": {
- "path": "/vpath2/"
- },
- "security": "tls",
- "tlsSettings": {
- "certificates": [
- {
- "certificateFile": "/etc/v2ray/cert.crt",
- "keyFile": "/etc/v2ray/cert.key"
- }
- ]
- }
- }
- }
複製代碼 |