Binary Installation
HitKeep compiles to a single binary with zero external dependencies.
Download
Section titled “Download”Download the latest release for your architecture from GitHub Releases.
# Example for Linux AMD64wget https://github.com/pascalebeier/hitkeep/releases/latest/download/hitkeep-linux-amd64chmod +x hitkeep-linux-amd64mv hitkeep-linux-amd64 /usr/local/bin/hitkeepRunning with Systemd
Section titled “Running with Systemd”For production Linux servers, we recommend using systemd to ensure HitKeep starts on boot and restarts on failure.
- Create a dedicated user:
useradd -r -s /bin/false hitkeepmkdir -p /var/lib/hitkeep/datachown hitkeep:hitkeep /var/lib/hitkeep/data- Create
/etc/systemd/system/hitkeep.service:
[Unit]Description=HitKeep AnalyticsAfter=network.target
[Service]User=hitkeepGroup=hitkeep
# SENSITIVE CONFIGURATION (Environment Variables)# Use Environment or EnvironmentFile to keep secrets out of process listingsEnvironment="HITKEEP_JWT_SECRET=change-this-to-a-long-random-string"Environment="HITKEEP_MAIL_PASSWORD=your-smtp-password"
# GENERAL CONFIGURATION (Flags)ExecStart=/usr/local/bin/hitkeep \ -public-url=https://analytics.example.com \ -db=/var/lib/hitkeep/data/hitkeep.db \ -http=:8080
Restart=alwaysRestartSec=3
[Install]WantedBy=multi-user.target- Enable and start:
systemctl daemon-reloadsystemctl enable --now hitkeep