Skip to content

Edge 設定リファレンス ​

config.yaml では識別情報、Captain 接続、ポート、TLS、上限、WireGuard、ログを設定します。

読み込み順 ​

  1. 既定値
  2. config.yaml
  3. 環境変数
  4. コマンドライン引数

コマンドライン引数が最も優先されます。相対パスは Edge のデータディレクトリを基準に解釈されます。

例 ​

yaml
node:
  name: my-edge
  region: sin
  public_address: edge.example.com

controller:
  address: captain.example.com:443
  insecure: false

tunnel:
  domain: edge.example.com
  http_port: 80
  https_port: 443
  tcp_ports: [10000-10100]
  udp_ports: [20000-20100]

wireguard:
  enabled: true
  listen_port: 51820
  subnet: 100.64.0.0/16

log:
  level: info
  file: /var/lib/yat-edge/log/app.log

主なセクション ​

node ​

キー内容
nameノード名
regionリージョンまたは場所ラベル
public_address公開ドメインまたは IP

controller ​

キー内容
addressCaptain のエンドポイント
insecure検証を無効化。テスト専用

tunnel ​

キー内容
domainEdge の基本ドメイン
http_portHTTP ポート
https_portHTTPS ポート
tcp_portsTCP ポートまたは範囲
udp_portsUDP ポートまたは範囲

wireguard ​

キー内容
enabledWireGuard の有効化
listen_portUDP ポート
subnet仮想サブネット
mtu通常は 1420

log ​

キー値内容
leveldebug、info、warn、errorログレベル
fileパス出力ファイル

performance ​

キー内容
max_connections同時接続数
bandwidth_limit帯域制限
worker_threadsワーカースレッド数

関連資料 ​


YAT Team

MIT ライセンスで公開。