@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 47 lines 524 Bytes
Raw
1 {
2 log {
3 format journald {
4 wrap console
5 }
6 }
7 }
8
9 :80 {
10 respond "Hello, World!"
11 }
12 ----------
13 {
14 "logging": {
15 "logs": {
16 "default": {
17 "encoder": {
18 "format": "journald",
19 "wrap": {
20 "format": "console"
21 }
22 }
23 }
24 }
25 },
26 "apps": {
27 "http": {
28 "servers": {
29 "srv0": {
30 "listen": [
31 ":80"
32 ],
33 "routes": [
34 {
35 "handle": [
36 {
37 "body": "Hello, World!",
38 "handler": "static_response"
39 }
40 ]
41 }
42 ]
43 }
44 }
45 }
46 }
47 }