Improve config (json) file creation
This commit is contained in:
parent
1d4e9efa15
commit
525eb21649
6 changed files with 91 additions and 84 deletions
config/lib
|
@ -1,15 +1,15 @@
|
|||
class ServerConfig {
|
||||
host: String
|
||||
port: UInt16
|
||||
host: String
|
||||
port: UInt16
|
||||
}
|
||||
|
||||
/// Set to a user and a group to drop privileges to after binding to the port
|
||||
class PermissionsConfig {
|
||||
user: String
|
||||
group: String
|
||||
user: String
|
||||
group: String
|
||||
}
|
||||
|
||||
class LoggingConfig {
|
||||
level: String
|
||||
file: String
|
||||
level: "TRACE"|"DEBUG"|"INFO"|"WARN"|"ERROR"|"FATAL"
|
||||
file: String
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue