feat!: further log customizations

This commit is contained in:
Henrique Dias
2024-07-29 10:11:02 +02:00
parent d5e5052f63
commit d7faa1f887
5 changed files with 75 additions and 65 deletions
+25 -14
View File
@@ -81,6 +81,31 @@ modify: true
# Default permissions rules to apply at the paths.
rules: []
# Logging configuration
log:
# Logging format ('console', 'json'). Default is 'console'.
format: console
# Enable or disable colors. Default is 'true'. Only applied if format is 'console'.
colors: true
# Logging outputs. You can have more than one output. Default is only 'stderr'.
outputs:
- stderr
# CORS configuration
cors:
# Whether or not CORS configuration should be applied. Default is 'false'.
enabled: true
credentials: true
allowed_headers:
- Depth
allowed_hosts:
- http://localhost:8080
allowed_methods:
- GET
exposed_headers:
- Content-Length
- Content-Range
# The list of users. If users is empty, then there will be no authentication.
users:
# Example 'admin' user with plaintext password.
@@ -108,20 +133,6 @@ users:
# a regular expression.
- regex: "^.+\.js$"
modify: true
# CORS configuration
cors:
enabled: true
credentials: true
allowed_headers:
- Depth
allowed_hosts:
- http://localhost:8080
allowed_methods:
- GET
exposed_headers:
- Content-Length
- Content-Range
```
### CORS