@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 92 lines 1.09 KB
Raw
1 # issue #3953
2 {
3 cert_issuer zerossl api_key
4 }
5
6 example.com {
7 tls {
8 on_demand
9 key_type rsa2048
10 }
11 }
12
13 http://example.net {
14 }
15
16 :1234 {
17 }
18 ----------
19 {
20 "apps": {
21 "http": {
22 "servers": {
23 "srv0": {
24 "listen": [
25 ":1234"
26 ]
27 },
28 "srv1": {
29 "listen": [
30 ":443"
31 ],
32 "routes": [
33 {
34 "match": [
35 {
36 "host": [
37 "example.com"
38 ]
39 }
40 ],
41 "terminal": true
42 }
43 ]
44 },
45 "srv2": {
46 "listen": [
47 ":80"
48 ],
49 "routes": [
50 {
51 "match": [
52 {
53 "host": [
54 "example.net"
55 ]
56 }
57 ],
58 "terminal": true
59 }
60 ]
61 }
62 }
63 },
64 "tls": {
65 "automation": {
66 "policies": [
67 {
68 "subjects": [
69 "example.com"
70 ],
71 "issuers": [
72 {
73 "api_key": "api_key",
74 "module": "zerossl"
75 }
76 ],
77 "key_type": "rsa2048",
78 "on_demand": true
79 },
80 {
81 "issuers": [
82 {
83 "api_key": "api_key",
84 "module": "zerossl"
85 }
86 ]
87 }
88 ]
89 }
90 }
91 }
92 }