mirror of
https://github.com/bytedance/g3.git
synced 2026-05-04 06:30:43 +00:00
initial commit
This commit is contained in:
commit
13716f4923
1425 changed files with 163227 additions and 0 deletions
40
g3proxy/examples/simple_http_gateway/g3proxy.conf
Normal file
40
g3proxy/examples/simple_http_gateway/g3proxy.conf
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
---
|
||||
runtime:
|
||||
thread_number: 2
|
||||
|
||||
log: journal
|
||||
|
||||
controller:
|
||||
local:
|
||||
recv_timeout: 30
|
||||
send_timeout: 1
|
||||
|
||||
server:
|
||||
- name: test
|
||||
escaper: default
|
||||
type: http_rproxy
|
||||
listen:
|
||||
address: "[::]:10080"
|
||||
conn_limit: 100M
|
||||
hosts:
|
||||
- exact_match: www.xjtu.edu.cn
|
||||
services:
|
||||
upstream: www.xjtu.edu.cn:80
|
||||
|
||||
resolver:
|
||||
- name: default
|
||||
type: c-ares
|
||||
server: 223.5.5.5
|
||||
|
||||
escaper:
|
||||
- name: default
|
||||
type: direct_fixed
|
||||
no_ipv6: true
|
||||
resolver: default
|
||||
resolve_strategy: IPv4Only
|
||||
tcp_conn_limit: 80M
|
||||
udp_relay_limit: 10M
|
||||
egress_network_filter:
|
||||
default: allow
|
||||
allow:
|
||||
- 127.0.0.1
|
||||
Loading…
Add table
Add a link
Reference in a new issue