Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 11, 01:00 UTC
| 1 | { |
| 2 | log custom-logger { |
| 3 | format filter { |
| 4 | wrap console |
| 5 | fields { |
| 6 | request>remote_ip ip_mask { |
| 7 | ipv4 24 |
| 8 | ipv6 32 |
| 9 | } |
| 10 | } |
| 11 | } |
| 12 | } |
| 13 | } |
| 14 | ---------- |
| 15 | { |
| 16 | "logging": { |
| 17 | "logs": { |
| 18 | "custom-logger": { |
| 19 | "encoder": { |
| 20 | "fields": { |
| 21 | "request\u003eremote_ip": { |
| 22 | "filter": "ip_mask", |
| 23 | "ipv4_cidr": 24, |
| 24 | "ipv6_cidr": 32 |
| 25 | } |
| 26 | }, |
| 27 | "format": "filter", |
| 28 | "wrap": { |
| 29 | "format": "console" |
| 30 | } |
| 31 | } |
| 32 | } |
| 33 | } |
| 34 | } |
| 35 | } |