Analytics server.
Install via Go toolchain.
$ go install github.com/dashanalytics/analytics-server/cmd/analytics-server
Key | Description |
---|---|
listen |
Listen address and port. |
db |
Redis database URL. |
access_token |
Access token for protecting sensitive data. |
cert |
X.509 certificate file path. |
key |
X.509 private key file path. |
When cert
and key
are not blank, the server will run as HTTPS.
HTTP Header | Description |
---|---|
connecting_ip |
Source IP. Such as CF-Connecting-IP for Cloudflare. |
ip_country |
IP country. Such as CF-IPCountry for Cloudflare. |
Example: analytics-server.yaml
listen: ":443"
db: "redis://default:@localhost/0"
key: "/etc/letsencrypt/live/symboltics.com/privkey.pem"
cert: "/etc/letsencrypt/live/symboltics.com/fullchain.pem"
access_token: ""
header:
key:
connecting_ip: "CF-Connecting-IP"
ip_country: "CF-IPCountry"