Add authentication config

This commit is contained in:
perp 2024-06-03 12:42:58 +01:00
parent 88377ee575
commit 8c50127dd8
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,6 @@
[auth]
disabled = false
[server]
address = "127.0.0.1:8080"
read_timeout = 10

View File

@ -16,11 +16,17 @@ package config
// Configuration
type Config struct {
Auth *Auth
Server *Server
Database *Database
Log *Log
}
// Auth configuration
type Auth struct {
Disabled bool `toml:"disabled"`
}
// Server configuration
type Server struct {
Address string `toml:"address"`