StreamBox/config/config.yaml

15 lines
334 B
YAML

server:
port: 8080
mode: debug # debug / release
read_timeout: 10s
write_timeout: 10s
log:
level: debug # debug / info / warn / error
encoding: console # console / json
cors:
allow_origins: ["*"]
allow_methods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"]
allow_headers: ["Origin", "Content-Type", "Authorization"]