mirror of
https://github.com/void-linux/void-packages.git
synced 2025-10-07 19:15:10 +02:00
16 lines
613 B
Text
16 lines
613 B
Text
The system service /etc/sv/goatcounter runs goatcounter as system user _goatcounter.
|
|
|
|
By default sqlite database is used. The database will be stored in
|
|
/var/db/goatcounter/db.sqlite3.
|
|
|
|
To initialize the database, make sure you run goatcounter as the _goatcounter user:
|
|
|
|
$ sudo -u _goatcounter goatcounter db create site \
|
|
-user.email 'admin@domain.name' \
|
|
-vhost site.name \
|
|
-db sqlite+/var/db/goatcounter/db.sqlite3
|
|
|
|
By default the service listens on 5000 port and does not use TLS. In production
|
|
envirnment you must adjust service config by creating /var/goatcounter/conf
|
|
|
|
OPTS=-listen ... -db ...
|