diff --git a/by-spectreq/xray-core/example-hysteria2-gecko.json b/by-spectreq/xray-core/example-hysteria2-gecko.json new file mode 100644 index 0000000..0e37d2d --- /dev/null +++ b/by-spectreq/xray-core/example-hysteria2-gecko.json @@ -0,0 +1,81 @@ +{ + "log": { + "loglevel": "warning" + }, + "inbounds": [ + { + "tag": "HYSTERIA_GECKO", + "port": 443, + "listen": "0.0.0.0", + "protocol": "hysteria", + "settings": { + "clients": [], + "version": 2 + }, + "streamSettings": { + "network": "hysteria", + "security": "tls", + "finalmask": { + "udp": [ + { + "type": "salamander", + "settings": { + "password": "#REPLACE WITH YOUR PASSWORD. ANY PASSPHRASE", + "packetSize": "900-1400" + } + } + ], + "quicParams": { + "debug": false, + "congestion": "bbr" + } + }, + "tlsSettings": { + "alpn": ["h3"], + "serverName": "#REPLACE WITH YOUR SERVER NAME, EXAMPLE: example.com", + "certificates": [ + { + "keyFile": "#PLACE YOUR SSL CERTIFICATE KEY FILE INSIDE REMNAWAVE PANEL, EXAMPLE: /var/lib/remnawave/configs/xray/ssl/cert.key", + "certificateFile": "#PLACE YOUR SSL CERTIFICATE FILE INSIDE REMNAWAVE PANEL, EXAMPLE: /var/lib/remnawave/configs/xray/ssl/cert.pem" + } + ] + }, + "hysteriaSettings": { + "version": 2 + } + } + } + ], + "outbounds": [ + { + "tag": "DIRECT", + "protocol": "freedom" + }, + { + "tag": "BLOCK", + "protocol": "blackhole" + } + ], + "routing": { + "rules": [ + { + "ip": [ + "geoip:private" + ], + "outboundTag": "BLOCK" + }, + { + "domain": [ + "geosite:private" + ], + "outboundTag": "BLOCK" + }, + { + "protocol": [ + "bittorrent" + ], + "outboundTag": "BLOCK" + } + ] + } +} diff --git a/xray-core-templates-list.json b/xray-core-templates-list.json index 9b528f7..05cabff 100644 --- a/xray-core-templates-list.json +++ b/xray-core-templates-list.json @@ -60,6 +60,12 @@ "author": "x1roko", "type": "XRAY_JSON", "url": "https://raw.githubusercontent.com/remnawave/templates/refs/heads/main/by-x1roko/xray-core/example-vless-tls-hy2-443-combo.json" - } + }, + { + "name": "Example Hysteria2 Gecko", + "author": "spectreq", + "type": "XRAY_JSON", + "url": "https://raw.githubusercontent.com/remnawave/templates/refs/heads/main/by-spectreq/xray-core/example-hysteria2-gecko.json" + } ] }