Add authentication config
This commit is contained in:
parent
88377ee575
commit
8c50127dd8
@ -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
|
||||||
|
@ -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"`
|
||||||
|
Loading…
Reference in New Issue
Block a user