print a warning if resourced is disabled

This commit is contained in:
blek 2023-11-11 18:02:04 +10:00
parent f0d7f8fd8c
commit 8abab247c4
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 4 additions and 0 deletions

View File

@ -87,6 +87,10 @@ func main() {
conf.Validate()
if ! conf.ResourceD.Enabled {
fmt.Println("\x1b[33m[warn] resourceD is disabled. No resources will be served\x1b[0m")
}
app := fiber.New(fiber.Config {
Prefork: true,
CaseSensitive: false,