Caps-Server/Sources/App/Config.swift
Christoph Hagen ce1e141ca4 Use json configuration
Delete paths.conf
2022-05-22 23:25:24 +02:00

17 lines
270 B
Swift

import Foundation
struct Config: Codable {
let logPath: String
let serveFiles: Bool
var logURL: URL {
.init(fileURLWithPath: logPath)
}
static var `default`: Config {
.init(logPath: "/var/log/caps.log", serveFiles: true)
}
}