Add better configuration, through yaml file

This commit is contained in:
Pablu23
2024-11-06 10:21:30 +01:00
parent 91d128dbeb
commit a98b68177c
9 changed files with 188 additions and 59 deletions

32
config.yaml Normal file
View File

@@ -0,0 +1,32 @@
general:
announce: true
healthz: healthz
server:
port: 443
certFile: server.crt
keyFile: server.key
rateLimit:
enabled: true
bucketSize: 50
refillSize: 10
refillTime: 1m
cleanupTime: 5m
hosts:
- port: 8181
domains:
- localhost
- test.localhost
- test2.localhost
public: true
- port: 8282
domains:
- private.localhost
public: false
logging:
level: debug
pretty: true
requests: true