Add NodeInfo endpoints

Includes new instance stats and the new option to show user stats, as
well.
This commit is contained in:
Matt Baer
2018-10-17 18:57:37 -04:00
parent 39477cfcab
commit 1a6f61690e
4 changed files with 104 additions and 0 deletions

View File

@@ -27,6 +27,8 @@ type (
MultiUser bool `ini:"multiuser"`
OpenSignups bool `ini:"open_signups"`
Federation bool `ini:"federation"`
PublicStats bool `ini:"public_stats"`
Private bool `ini:"private"`
Name string `ini:"site_name"`
@@ -56,6 +58,7 @@ func New() *Config {
},
App: AppCfg{
Federation: true,
PublicStats: true,
MinUsernameLen: 3,
},
}