-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.yaml
78 lines (72 loc) · 1.77 KB
/
config.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
rules:
- listen_addr:
- "[::]:25"
- "[::]:587"
- "[::]:993"
protocol: Tcp
upstreams:
- name: smtp
match: !DestinationPort 25
backends: !Static
- addr: "[fd00:cafe::5]:25"
proxy_protocol: true
cnx_max_duration: 5m
load_balancing: !RoundRobin
- name: smtps
match: !DestinationPort 587
backends: !Static
- addr: "127.0.0.1:588"
proxy_protocol: false
cnx_max_duration: 5m
load_balancing: !RoundRobin
- name: imaps
match: !DestinationPort 993
backends: !Static
- addr: "[fd00:cafe::5]:993"
proxy_protocol: false
cnx_max_duration: 10m
load_balancing: !RoundRobin
- listen_addr:
- "[::]:443"
protocol: Tls
upstreams:
- name: wstunnel
match: !Sni ws.erebe.eu
backends: !Static
- addr: "[fd00:cafe::254]:8084"
proxy_protocol: false
cnx_max_duration: 1h
load_balancing: !RoundRobin
- name: nginx-https
match: !Any
backends: !Static
- addr: "[fd00:cafe::254]:444"
proxy_protocol: true
cnx_max_duration: 10m
load_balancing: !RoundRobin
- listen_addr:
- "[::]:80"
protocol: Tcp
upstreams:
- name: nginx-http
match: !Any
backends: !Static
- addr: "[fd00:cafe::254]:81"
proxy_protocol: true
cnx_max_duration: 10m
load_balancing: !RoundRobin
- listen_addr:
- "[::]:8089"
protocol: Tls
upstreams:
- name: test
match: !Any
backends: !Static
- addr: "[2a01:4f8:0:a232::2]:80"
proxy_protocol: false
cnx_max_duration: 10m
load_balancing: !RoundRobin
#tls:
# certificate: /etc/certs.d/erebe.eu/tls.crt
# private_key: /etc/certs.d/erebe.eu/tls.key
# alpns: ["h2"]