-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathservers.example.yml
92 lines (91 loc) · 3.64 KB
/
servers.example.yml
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
config_servers:
server1-uuid:
# name of server (one line)
name:
# domain of server that will be put into config (IP or domain users will connect to)
host:
# ip address xray server should listen to. leave blank to listen all IP addresses
inbound_ip:
# ip address xray server should use for outbound connections. leave blank to use default (on OS level) IP address
outbound_ip:
# port of xray to be exposed and used publicly
port:
# flow parameter in https://xtls.github.io/en/config/outbounds/vless.html#serverobject (ideally xtls-rprx-vision)
flow:
# fingerprint parameters as `fingerprint` in https://xtls.github.io/ru/config/transport.html#tlsobject
fingerprints:
- chrome
- safari
- "..."
# private key. generate with ./xray x25519
private_key:
# public key. generate with ./xray x25519
public_key:
# where regular https requests proxy to and what website xray should pretent as
fallback_proxy_target: example.com
# list of sni should be accepter by xray. see serverNames in https://xtls.github.io/ru/config/transport.html#realityobject
supported_snis:
- example.com
- www.example.com
prometheus_metrics:
# port where prometheus metrics endpoints should be exposed
port:
# self-signed cert and keys SSL
# generate with `openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 3650 -nodes -subj "/CN=<ip or domain value>" -addext "subjectAltName=<IP or DNS>:<ip or domain value>"`
tls:
certificate: |
-----BEGIN CERTIFICATE-----
....
-----END CERTIFICATE-----
key: |
-----BEGIN PRIVATE KEY-----
....
-----END PRIVATE KEY-----
# there are two APIs: for xray metrics and node_exporter metrics
xray:
# URL path (any string starting with /)
url_path: /some-random-string1
node_exporter:
url_path: /some-random-string2
# second server (for instance)
server2-uuid:
# name of server (one line)
name:
# domain of server that will be put into config (IP or domain users will connect to)
host:
# ip address xray server should listen to. leave blank to listen all IP addresses
inbound_ip:
# ip address xray server should use for outbound connections. leave blank to use default (on OS level) IP address
outbound_ip:
# port of xray to be exposed and used publicly
port:
# flow parameter in https://xtls.github.io/en/config/outbounds/vless.html#serverobject (ideally xtls-rprx-vision)
flow:
# fingerprint parameter in https://xtls.github.io/ru/config/transport.html#tlsobject
fingerprints:
-
-
# private key. generate with ./xray x25519
private_key:
# public key. generate with ./xray x25519
public_key:
# where regular https requests proxy to and what website xray should pretent as
fallback_proxy_target:
# list of sni should be accepter by xray. see serverNames in https://xtls.github.io/ru/config/transport.html#realityobject
supported_snis:
-
-
prometheus_metrics:
# port where prometheus metrics endpoints should be exposed
port:
# self-signed cert and keys SSL
# generate with `openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 3650 -nodes -subj "/CN=<ip or domain value>" -addext "subjectAltName=<IP or DNS>:<ip or domain value>"`
tls:
certificate:
key:
# there are two APIs: for xray metrics and node_exporter metrics
xray:
# URL path (any string starting with /)
url_path:
node_exporter:
url_path: