Add HAProxy TLS routing for HK CMI
This commit is contained in:
@@ -0,0 +1,108 @@
|
||||
{
|
||||
"certificate_providers": [
|
||||
{
|
||||
"type": "acme",
|
||||
"tag": "public-cert",
|
||||
"domain": [
|
||||
"${DOMAIN}",
|
||||
"${ANYTLS_DOMAIN}"
|
||||
],
|
||||
"email": "${ACME_EMAIL}",
|
||||
"dns01_challenge": {
|
||||
"provider": "cloudflare",
|
||||
"api_token": "${CLOUDFLARE_API_TOKEN}"
|
||||
}
|
||||
}
|
||||
],
|
||||
"inbounds": [
|
||||
{
|
||||
"type": "trojan",
|
||||
"tag": "trojan-in",
|
||||
"listen": "::",
|
||||
"listen_port": ${LISTEN_PORT},
|
||||
"users": [
|
||||
{
|
||||
"name": "user1",
|
||||
"password": "${USER1_PASSWORD}"
|
||||
}
|
||||
],
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
"server_name": "${DOMAIN}",
|
||||
"certificate_provider": "public-cert"
|
||||
},
|
||||
"multiplex": {
|
||||
"enabled": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "anytls",
|
||||
"tag": "anytls-in",
|
||||
"listen": "::",
|
||||
"listen_port": ${ANYTLS_PORT},
|
||||
"users": [
|
||||
{
|
||||
"name": "user1",
|
||||
"password": "${ANYTLS_PASSWORD}"
|
||||
}
|
||||
],
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
"server_name": "${ANYTLS_DOMAIN}",
|
||||
"certificate_provider": "public-cert"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "hysteria2",
|
||||
"tag": "hysteria2-in",
|
||||
"listen": "0.0.0.0",
|
||||
"listen_port": ${HY2_PORT},
|
||||
"obfs": {
|
||||
"type": "salamander",
|
||||
"password": "${HY2_OBFS_PASSWORD}"
|
||||
},
|
||||
"users": [
|
||||
{
|
||||
"name": "user1",
|
||||
"password": "${HY2_PASSWORD}"
|
||||
}
|
||||
],
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
"server_name": "${DOMAIN}",
|
||||
"alpn": [
|
||||
"h3"
|
||||
],
|
||||
"certificate_provider": "public-cert"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "snell",
|
||||
"tag": "snell-v4-compatible-in",
|
||||
"listen": "::",
|
||||
"listen_port": ${SNELL_V4_PORT},
|
||||
"version": 5,
|
||||
"psk": "${SNELL_V4_PSK}",
|
||||
"obfs_mode": "none"
|
||||
},
|
||||
{
|
||||
"type": "snell",
|
||||
"tag": "snell-v6-in",
|
||||
"listen": "::",
|
||||
"listen_port": ${SNELL_V6_PORT},
|
||||
"version": 6,
|
||||
"psk": "${SNELL_V6_PSK}",
|
||||
"mode": "default"
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"type": "direct"
|
||||
}
|
||||
],
|
||||
"log": {
|
||||
"disabled": false,
|
||||
"level": "info",
|
||||
"timestamp": true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user