{
"inbounds": [
{
"port": 10617,
"listen": "127.0.0.1",
"protocol": "vmess",
"settings": {
"clients": [{ "id": "08a5d7ec-45d7-4928-9bd6-d9bd97c00cde", "alterId": 0 }]
},
"streamSettings": {
"network": "xhttp",
"xhttpSettings": {
"path": "/loginmyid",
"host": "your.domain.com",
"version": "h2" // h2 atau h3
},
"security": "none"
}
}
],
"outbounds": [{ "protocol": "freedom" }]
}
How to use in client:
scp -P 2022 ./filename x@192.168.1.12:~
password : x
server {
listen 443 ssl http2;
server_name your.domain.com;
ssl_certificate /etc/letsencrypt/live/your.domain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/your.domain.com/privkey.pem;
location /loginmyid {
proxy_pass http://127.0.0.1:10617;
proxy_http_version 1.1; # <-- bukan '2'
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
}
}
Konfigurasi Klien: