admin/index.html: Display config as yaml

This commit is contained in:
Tom Wiesing 2023-02-26 19:21:42 +01:00
parent 2edd0f2fe2
commit eec8b89e06
No known key found for this signature in database
3 changed files with 41 additions and 209 deletions

View file

@ -4,7 +4,7 @@ type DatabaseConfig struct {
// Credentials for the admin user.
// Is automatically created if it does not exist.
AdminUsername string `yaml:"username" default:"admin" validate:"nonempty"`
AdminPassword string `yaml:"password" validate:"nonempty"`
AdminPassword string `yaml:"password" validate:"nonempty" sensitive:"****"`
// Prefix for new users and data setss
UserPrefix string `yaml:"user_prefix" default:"wisski-distillery-" validate:"slug"`