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, 22:15 UTC
Add test for 5b727bde2992e7cb9987208453db42ae6e1c6e1e
Matthew Holt committed
Jul 30, 2025 at 14:43 UTC
4fd2acb5c97059a74ad507e0a34a032526d63115
1 file changed
+60
caddytest/integration/caddyfile_adapt/acme_dns_naked_use_dns_defaults.caddyfiletest
new
+60
@@ -0,0 +1,60 @@
1
+{
2
+ dns mock
3
+ acme_dns
4
+}
5
+
6
+example.com {
7
+
8
+}
9
+----------
10
+{
11
+ "apps": {
12
+ "http": {
13
+ "servers": {
14
+ "srv0": {
15
+ "listen": [
16
+ ":443"
17
+ ],
18
+ "routes": [
19
+ {
20
+ "match": [
21
+ {
22
+ "host": [
23
+ "example.com"
24
+ ]
25
+ }
26
+ ],
27
+ "terminal": true
28
+ }
29
+ ]
30
+ }
31
+ }
32
+ },
33
+ "tls": {
34
+ "automation": {
35
+ "policies": [
36
+ {
37
+ "subjects": [
38
+ "example.com"
39
+ ],
40
+ "issuers": [
41
+ {
42
+ "challenges": {
43
+ "dns": {
44
+ "provider": {
45
+ "name": "mock"
46
+ }
47
+ }
48
+ },
49
+ "module": "acme"
50
+ }
51
+ ]
52
+ }
53
+ ]
54
+ },
55
+ "dns": {
56
+ "name": "mock"
57
+ }
58
+ }
59
+ }
60
+}
\ No newline at end of file