Add profiling endpoints
This commit is contained in:
parent
391d8b1b48
commit
124fc0ecac
4 changed files with 88 additions and 2 deletions
|
@ -45,6 +45,11 @@ type ConfigAdmin struct {
|
|||
// A one time password used to verify account access to the root admin
|
||||
// after a server has been created and before the account could be linked to a passkey
|
||||
FirstTimeSetupOTP string `toml:"first_time_setup_otp"`
|
||||
// Password for protecting profiling data from unauthorised access
|
||||
// An empty string equals to no password
|
||||
// The password has to be supplied in the `password` GET form value for all requests
|
||||
// to /profiling/*
|
||||
ProfilingPassword string `toml:"profiling_password"`
|
||||
}
|
||||
|
||||
type ConfigStorage struct {
|
||||
|
@ -106,6 +111,7 @@ var defaultConfig Config = Config{
|
|||
Admin: ConfigAdmin{
|
||||
Username: "server-admin",
|
||||
FirstTimeSetupOTP: "Example otp password",
|
||||
ProfilingPassword: "Example profiling password",
|
||||
},
|
||||
Webauthn: ConfigWebAuthn{
|
||||
DisplayName: "Linstrom",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue