Add authentication config
This commit is contained in:
parent
88377ee575
commit
8c50127dd8
@ -1,3 +1,6 @@
|
||||
[auth]
|
||||
disabled = false
|
||||
|
||||
[server]
|
||||
address = "127.0.0.1:8080"
|
||||
read_timeout = 10
|
||||
|
@ -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"`
|
||||
|
Loading…
Reference in New Issue
Block a user