-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.toml
47 lines (39 loc) · 1.89 KB
/
config.toml
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
# Optional base path. This will change the path the scripts and endpoints are available on.
# The default is "/p", meaning scripts and endpoints will be available on /p/p.js, /p/pv, and so on.
#base_path = "/p"
# Path for page views, sessions, and session extensions.
# Defaults are as configured below.
#page_view_path = "pv"
#event_path = "e"
#session_path = "s"
# Filename for pa. The default is as configured below.
#js_filename = "p.js"
# The base URL is used for testing purposes only.
#base_url = "https://localhost.com:9999"
# Proxy server configuration.
# You should use a TLS certificate or run it behind a reverse proxy that queries a certificate for you.
[server]
host = ":4556"
write_timeout = 5
read_timeout = 5
#tls = true
#tls_cert = "path/to/cert_file"
#tls_key = "path/to/key_file
# Proxy network configuration.
# This configuration can be used to retreive the real client IP address and set accepted subnets for proxies and load balancers.
# Make sure you use the correct header if you are running the proxy behind another proxy or load balancer, otherwise the statistics will be inaccurate.
[network]
# Parsed in order, allowed values: CF-Connecting-IP, True-Client-IP, X-Forwarded-For, Forwarded, X-Real-IP, caddy
# The proxy will use the remote IP if no header is configured.
# For Caddy add "caddy" to the list. It's the same as X-Forwarded-For, but uses the first entry instead of the last.
header = ["CF-Connecting-IP", "True-Client-IP", "X-Forwarded-For", "Forwarded", "X-Real-IP"]
# List of allowed subnets (CIDR).
#subnets = ["10.0.0.0/8"]
# List of clients to send data to.
# The client ID can be left empty if you use an access key instead of oAuth, which is what we recommend.
[[clients]]
# id = "your-client-id"
secret = "your-client-secret or access-key"
#[[clients]]
# id = "your-client-id"
# secret = "your-client-secret or access-key"