@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 54 lines 680 Bytes
Raw
1 a.example.com {
2 tls {
3 issuer internal {
4 ca foo
5 lifetime 24h
6 sign_with_root
7 }
8 }
9 }
10 ----------
11 {
12 "apps": {
13 "http": {
14 "servers": {
15 "srv0": {
16 "listen": [
17 ":443"
18 ],
19 "routes": [
20 {
21 "match": [
22 {
23 "host": [
24 "a.example.com"
25 ]
26 }
27 ],
28 "terminal": true
29 }
30 ]
31 }
32 }
33 },
34 "tls": {
35 "automation": {
36 "policies": [
37 {
38 "subjects": [
39 "a.example.com"
40 ],
41 "issuers": [
42 {
43 "ca": "foo",
44 "lifetime": 86400000000000,
45 "module": "internal",
46 "sign_with_root": true
47 }
48 ]
49 }
50 ]
51 }
52 }
53 }
54 }