mirror of
https://github.com/bytedance/g3.git
synced 2026-05-05 15:31:21 +00:00
g3proxy: default to use yaml conf file extension
This commit is contained in:
parent
1530f4ce17
commit
d58bd61d28
89 changed files with 21 additions and 21 deletions
43
g3proxy/examples/escaper_route_select/g3proxy.yaml
Normal file
43
g3proxy/examples/escaper_route_select/g3proxy.yaml
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
---
|
||||
runtime:
|
||||
thread_number: 2
|
||||
|
||||
controller:
|
||||
local:
|
||||
recv_timeout: 30
|
||||
send_timeout: 1
|
||||
|
||||
server:
|
||||
- name: server_random
|
||||
escaper: random
|
||||
type: http_proxy
|
||||
listen:
|
||||
address: "[::]:10086"
|
||||
conn_limit: 100M
|
||||
|
||||
resolver:
|
||||
- name: default
|
||||
type: c-ares
|
||||
server: 223.5.5.5
|
||||
|
||||
escaper:
|
||||
- name: direct1
|
||||
type: direct_fixed
|
||||
no_ipv6: true
|
||||
resolver: default
|
||||
resolve_strategy: IPv4Only
|
||||
tcp_conn_limit: 80M
|
||||
udp_relay_limit: 10M
|
||||
- name: direct2
|
||||
type: direct_fixed
|
||||
no_ipv6: true
|
||||
resolver: default
|
||||
resolve_strategy: IPv4Only
|
||||
tcp_conn_limit: 80M
|
||||
udp_relay_limit: 10M
|
||||
- name: random
|
||||
type: route_select
|
||||
next_nodes:
|
||||
- direct1
|
||||
- direct2
|
||||
next_pick_policy: random
|
||||
Loading…
Add table
Add a link
Reference in a new issue