feat: allow users config from file

This commit is contained in:
Stavros
2025-01-20 18:39:22 +02:00
parent e2f97d1fbe
commit fcaa3779d5
4 changed files with 53 additions and 9 deletions

View File

@@ -23,7 +23,8 @@ type Config struct {
Address string `mapstructure:"address, ip4_addr"`
Secret string `validate:"required,len=32" mapstructure:"secret"`
AppURL string `validate:"required,url" mapstructure:"app-url"`
Users string `validate:"required" mapstructure:"users"`
Users string `mapstructure:"users"`
UsersFile string `mapstructure:"users-file"`
}
type UserContext struct {