-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.dgate.yaml
50 lines (49 loc) · 1.02 KB
/
config.dgate.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: v1
debug: true
log_level: ${LOG_LEVEL:-info}
disable_default_namespace: true
tags: [debug, local, test]
storage:
type: file
dir: .dgate/data/
test_server:
port: 8888
host: 0.0.0.0
global_headers:
X-Test-Header: ${TEST_HEADER:-test}
proxy:
port: ${PORT:-80}
host: 0.0.0.0
console_log_level: info
client_transport:
disable_private_ips: false
dns_prefer_go: true
init_resources:
namespaces:
- name: "admin"
services:
- name: "admin-svc"
namespace: "admin"
urls:
- "http://localhost:9080"
routes:
- name: "admin-rt"
paths: ["/*"]
methods: ["*"]
namespace: "admin"
service: "admin-svc"
domains:
- name: "admin"
namespace: "admin"
patterns: ["admin.*"]
tls:
port: ${PORT_SSL:-443}
auto_generate: true
cert_file: internal/proxy/testdata/server.crt
key_file: internal/proxy/testdata/server.key
admin:
port: 9080
host: 0.0.0.0
allow_list:
- "127.0.0.1/8"
- "::1"