Skip to content

نمونه پیکربندی

Uncle JackAss edited this page Jul 10, 2024 · 2 revisions

فایل config.toml باید در مسیر اصلی پروژه وجود داشته باشد. درصورتی که می‌خواهید آن را از مسیر دیگری بخوانید، مسیر آن را در متغیر محلی CONFIG_PATH قرار دهید.

# visit https://{YOUR-WORKERS-SUBDOMAIN}.workers.dev/link to get your inbound config links

# supports vless only on `"encryption": "none"` mode
[[inbound]]
protocol = "vless"
uuid = "0fbf4f81-2598-4b6a-a623-0ead4cb9efa8"
path = "/vless"

# supports vmess only on `"security": "zero"` mode
[[inbound]]
protocol = "vmess"
uuid = "0fbf4f81-2598-4b6a-a623-0ead4cb9efa8"
path = "/vmess"

[[inbound]]
protocol = "trojan"
password = "test"
path = "/trojan"

[[inbound]]
protocol = "bepass"
path = "/connect"

[outbound]
addresses = ["127.0.0.1"]
port = 1085
# supported outbound protocols: vless/relay(v1, v2)
protocol = "vless"
uuid = "0fbf4f81-2598-4b6a-a623-0ead4cb9efa8"
match = [
    "173.245.48.0/20",
    "103.21.244.0/22",
    "103.22.200.0/22",
    "103.31.4.0/22",
    "141.101.64.0/18",
    "108.162.192.0/18",
    "190.93.240.0/20",
    "188.114.96.0/20",
    "197.234.240.0/22",
    "198.41.128.0/17",
    "162.158.0.0/15",
    "104.16.0.0/13",
    "104.24.0.0/14",
    "172.64.0.0/13",
    "131.0.72.0/22"
]