mirror of
https://github.com/bytedance/g3.git
synced 2026-04-28 19:51:23 +00:00
g3proxy: rename .conf example conf to .yml
This commit is contained in:
parent
2ad6b4d9ea
commit
570d58dadd
50 changed files with 4 additions and 4 deletions
65
g3proxy/examples/simple_user_auth/g3proxy.yml
Normal file
65
g3proxy/examples/simple_user_auth/g3proxy.yml
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
---
|
||||
runtime:
|
||||
thread_number: 2
|
||||
|
||||
controller:
|
||||
local:
|
||||
recv_timeout: 30
|
||||
send_timeout: 1
|
||||
|
||||
log: journal
|
||||
|
||||
user_group:
|
||||
- name: default
|
||||
static_users:
|
||||
- name: root
|
||||
# password: toor
|
||||
token:
|
||||
salt: 113323bdab6fd2cc
|
||||
md5: 5c81f2becadde7fa5fde9026652ccc84
|
||||
sha1: ff9d5c1a14328dd85ee95d4e574bd0558a1dfa96
|
||||
dst_port_filter:
|
||||
- 80
|
||||
- 443
|
||||
dst_host_filter_set:
|
||||
exact:
|
||||
# for ipinfo.io
|
||||
- ipinfo.io
|
||||
- 1.1.1.1
|
||||
child:
|
||||
# for myip.ipip.net
|
||||
- "ipip.net"
|
||||
regex:
|
||||
# for lumtest.com/myip.json
|
||||
- "lum[a-z]*[.]com$"
|
||||
source:
|
||||
type: file
|
||||
path: dynamic_users.json
|
||||
|
||||
server:
|
||||
- name: socks
|
||||
escaper: default
|
||||
user_group: default
|
||||
type: socks_proxy
|
||||
enable_udp_associate: true
|
||||
listen:
|
||||
address: "[::]:11080"
|
||||
- name: http
|
||||
escaper: default
|
||||
user_group: default
|
||||
type: http_proxy
|
||||
listen:
|
||||
address: "[::]:13128"
|
||||
|
||||
resolver:
|
||||
- name: default
|
||||
type: c-ares
|
||||
server: 223.5.5.5
|
||||
|
||||
escaper:
|
||||
- name: default
|
||||
type: direct_fixed
|
||||
resolver: default
|
||||
resolve_strategy: IPv4First
|
||||
tcp_conn_limit: 80M
|
||||
udp_relay_limit: 10M
|
||||
Loading…
Add table
Add a link
Reference in a new issue