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] [server]
address = "127.0.0.1:8080" address = "127.0.0.1:8080"
read_timeout = 10 read_timeout = 10

View File

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