feat: version info analytics (#363)

* feat: version info analytics

* refactor: don't create new client everytime
This commit is contained in:
Stavros
2025-09-19 14:44:22 +03:00
committed by GitHub
parent 51937906ad
commit 50105e4e9d
5 changed files with 109 additions and 42 deletions

View File

@@ -94,6 +94,7 @@ func init() {
{"resources-dir", "/data/resources", "Path to a directory containing custom resources (e.g. background image)."},
{"database-path", "/data/tinyauth.db", "Path to the Sqlite database file."},
{"trusted-proxies", "", "Comma separated list of trusted proxies (IP addresses or CIDRs) for correct client IP detection."},
{"disable-analytics", false, "Disable anonymous version collection."},
}
for _, opt := range configOptions {