cedar2025 / Xboard

基于V2board二次开发支持新协议新特性的高性能面板
MIT License
1.37k stars 325 forks source link

[Example] XrayR config example for XBoard REALITY #73

Open JobberRT opened 4 months ago

JobberRT commented 4 months ago

I could send a PR if you like it, but for now I just create an issue here.

Before use XrayR

Example

Log:
  Level: "debug" # Log level: none, error, warning, info, debug
  AccessPath: "/etc/XrayR/access.log"
  ErrorPath: "/etc/XrayR/error.log"
DnsConfigPath: "/etc/XrayR/dns.json" # Path to dns config, check https://xtls.github.io/config/dns.html for help
RouteConfigPath: "/etc/XrayR/route.json" # Path to route config, check https://xtls.github.io/config/routing.html for help
OutboundConfigPath: "/etc/XrayR/custom_outbound.json" # Path to custom outbound config, check https://xtls.github.io/config/outbound.html for help
ConnectionConfig:
  Handshake: 5 # Handshake time limit, Second
  ConnIdle: 15 # Connection idle time limit, Second
  UplinkOnly: 5 # Time limit when the connection downstream is closed, Second
  DownlinkOnly: 5 # Time limit when the connection is closed after the uplink is closed, Second
  BufferSize: 256 # The internal cache size of each connection, kB
Nodes:
  - PanelType: "NewV2board" # Panel type: SSpanel, NewV2board, PMpanel, Proxypanel, V2RaySocks, GoV2Panel
    ApiConfig:
      ApiHost: "https://example.com"
      ApiKey: "somesecret"
      NodeID: 1
      NodeType: "V2ray" # Node type: V2ray, Shadowsocks, Trojan, Shadowsocks-Plugin
      Timeout: 30 # Timeout for the api request
      EnableVless: true # Enable Vless for V2ray Type
    ControllerConfig:
      ListenIP: "0.0.0.0" # IP address you want to listen
      SendIP: "0.0.0.0" # IP address you want to send pacakage
      UpdatePeriodic: 5 # Time to update the nodeinfo, how many sec.
      EnableDNS: true # Use custom DNS config, Please ensure that you set the dns.json well
      DNSType: UseIPv4 # AsIs, UseIP, UseIPv4, UseIPv6, DNS strategy

      # +-------------------------------------+
      # | Below are the real important config |
      # +-------------------------------------+
      DisableLocalREALITYConfig: true  # disable local reality config
      # I just minified this block
      REALITYConfigs:
        Show: true # Show REALITY debug
      # And this block too
      CertConfig:
        CertMode: none # Option about how to get certificate: none, file, http, tls, dns. Choose "none" will forcedly disable the tls config.