Categorygithub.com/dashanalytics/analytics-server

# README

analytics-server

Analytics server.

Install

Install via Go toolchain.

$ go install github.com/dashanalytics/analytics-server/cmd/analytics-server

Setup

Server

KeyDescription
listenListen address and port.
dbRedis database URL.
access_tokenAccess token for protecting sensitive data.
certX.509 certificate file path.
keyX.509 private key file path.

When cert and key are not blank, the server will run as HTTPS.

Provider-specific HTTP header specified in header.key

HTTP HeaderDescription
connecting_ipSource IP. Such as CF-Connecting-IP for Cloudflare.
ip_countryIP country. Such as CF-IPCountry for Cloudflare.

Example: analytics-server.yaml

listen: ":443"
db: "redis://default:@::1/0"

key: "/etc/letsencrypt/live/symboltics.com/privkey.pem"
cert: "/etc/letsencrypt/live/symboltics.com/fullchain.pem"

access_token: ""

user_agent_filter:
  - bot
  - crawler

header:
  key:
    connecting_ip: "CF-Connecting-IP"
    ip_country: "CF-IPCountry"

# Packages

No description provided by the author
No description provided by the author