19 lines
734 B
Swift
19 lines
734 B
Swift
import Configuration
|
|||
|
|
|
||
|
|
extension ConfigValue {
|
||
|
|
/// A namespace for the HTTP server's default configuration values.
|
||
|
|
public enum HTTP {
|
||
|
|
/// The default host the server binds to.
|
||
|
|
public static let host: ConfigValue = .init(stringLiteral: "127.0.0.1")
|
||
|
|
/// The default port the server listens on.
|
||
|
|
public static let port: ConfigValue = .init(stringLiteral: "0")
|
||
|
|
/// The default server name.
|
||
|
|
public static let serverName: ConfigValue = .init(stringLiteral: .Server.name)
|
||
|
|
}
|
||
|
|
/// A namespace for the logging default configuration values.
|
||
|
|
enum Log {
|
||
|
|
/// The default minimum log level.
|
||
|
|
public static let level: ConfigValue = .init(stringLiteral: "trace")
|
||
|
|
}
|
||
|
|
}
|