@marcel91200 / caddy Mirror · read-only
Fork 0

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

master
caddyfiletest 93 lines 1.29 KB
Raw
1 {
2 debug
3
4 log access-console {
5 include http.log.access.foo
6 output file access-localhost.log
7 format console
8 }
9
10 log access-json {
11 include http.log.access.foo
12 output file access-localhost.json
13 format json
14 }
15 }
16
17 http://localhost:8881 {
18 log foo
19 }
20 ----------
21 {
22 "logging": {
23 "logs": {
24 "access-console": {
25 "writer": {
26 "filename": "access-localhost.log",
27 "output": "file"
28 },
29 "encoder": {
30 "format": "console"
31 },
32 "level": "DEBUG",
33 "include": [
34 "http.log.access.foo"
35 ]
36 },
37 "access-json": {
38 "writer": {
39 "filename": "access-localhost.json",
40 "output": "file"
41 },
42 "encoder": {
43 "format": "json"
44 },
45 "level": "DEBUG",
46 "include": [
47 "http.log.access.foo"
48 ]
49 },
50 "default": {
51 "level": "DEBUG",
52 "exclude": [
53 "http.log.access.foo"
54 ]
55 }
56 }
57 },
58 "apps": {
59 "http": {
60 "servers": {
61 "srv0": {
62 "listen": [
63 ":8881"
64 ],
65 "routes": [
66 {
67 "match": [
68 {
69 "host": [
70 "localhost"
71 ]
72 }
73 ],
74 "terminal": true
75 }
76 ],
77 "automatic_https": {
78 "skip": [
79 "localhost"
80 ]
81 },
82 "logs": {
83 "logger_names": {
84 "localhost": [
85 "foo"
86 ]
87 }
88 }
89 }
90 }
91 }
92 }
93 }