@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 31 lines 328 Bytes
Raw
1 (foo) {
2 respond {env.FOO}
3 }
4
5 :80 {
6 import foo
7 }
8 ----------
9 {
10 "apps": {
11 "http": {
12 "servers": {
13 "srv0": {
14 "listen": [
15 ":80"
16 ],
17 "routes": [
18 {
19 "handle": [
20 {
21 "body": "{env.FOO}",
22 "handler": "static_response"
23 }
24 ]
25 }
26 ]
27 }
28 }
29 }
30 }
31 }