Git Product home page Git Product logo

Comments (3)

crossfw avatar crossfw commented on July 17, 2024

手动配置Xray入站

from air-universe.

tearfulDalvik avatar tearfulDalvik commented on July 17, 2024

手动配置Xray入站

请问如何配置呢?这个部分不是由 airu 从 API 自动添加的吗?

from air-universe.

zhyonc avatar zhyonc commented on July 17, 2024

手动配置Xray入站

请问如何配置呢?这个部分不是由 airu 从 API 自动添加的吗?

  • Route:client->xray:443[tfo-in]->xray[direct-out]->au10084->xray10085[api]->xray[raw-in]->xray[direct-out]
//Xray server config.json
{
    "inbouds": [
    {
        "listen": "127.0.0.1",
        "port": 443,
        "protocol": "dokodemo-door",
        "settings":
        {
            "address": "127.0.0.1",
            "port": 10084 //v2board node server port is equivalent to air-universe listening port
        },
        "streamSettings":
        {
            "network": "tcp",
            "security": "tls",
            "tlsSettings":
            {
                "certificates": [
                {
                    "certificateFile": "/path/to/fullchain.crt",
                    "keyFile": "/path/to/private.key"
                }]
            },
            "sockopt":
            {
                "tcpFastOpen": true
            }
        },
        "tag": "tfo-in"
    },
    {
        "listen": "127.0.0.1",
        "port": 10085, //This port use for air-universe callback api to create user info
        "protocol": "dokodemo-door",
        "settings":
        {
            "address": "127.0.0.1"
        },
        "tag": "api"
    }],
    "outbounds": [
    {
        "protocol": "freedom",
        "settings": {},
        "tag": "direct-out"
    }],
    "api":
    {
        "services": [
            "HandlerService",
            "StatsService"
        ],
        "tag": "api"
    },
    "stats":{},
    "policy":
    {
        "levels":
        {
            "0":
            {
                "statsUserDownlink": true,
                "statsUserUplink": true
            }
        }
    },
    "routing":
    {
        "rules": [
        {
            "type": "field",
            "domainStrategy": "AsIs",
            "inboundTag": ["tfo-in","raw-in"],
            "outboundTag": "direct-out"
        },
        {
            "type": "field",
            "domainStrategy": "AsIs",
            "inboundTag": ["api"],
            "outboundTag": "api"
        }]
    }
}
//Air-Universe au.json
"proxy":
{
    "type": "xray",
    "alter_id": 0,
    "auto_generate": true,
    "in_tags": ["raw-in"],
    "api_address": "127.0.0.1",
    "api_port": 10085,
    "force_close_tls": true,
    "log_path": "/var/log/au.log",
    "cert":
    {
        "cert_path": "/path/to/certificate.crt",
        "key_path": "/path/to/key.key"
    },
    "speed_limit_level": [0]
}


from air-universe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.