summaryrefslogtreecommitdiff
path: root/caddytest/integration/caddyfile_adapt
diff options
context:
space:
mode:
authorFrancis Lavoie <lavofr@gmail.com>2022-10-04 22:58:19 -0400
committerGitHub <noreply@github.com>2022-10-04 20:58:19 -0600
commit2808de1e30b873f9c8f4693eae59bd56f20ebbbe (patch)
tree2d428b0b111962230aecfe86cdbd97a743d1dd4f /caddytest/integration/caddyfile_adapt
parent253d97c93dce9a3365e67d0360b2e47dd165578e (diff)
httpcaddyfile: Skip `automate` when `auto_https off` is specified (#5110)
Diffstat (limited to 'caddytest/integration/caddyfile_adapt')
-rw-r--r--caddytest/integration/caddyfile_adapt/tls_automation_policies_10.txt58
1 files changed, 58 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/tls_automation_policies_10.txt b/caddytest/integration/caddyfile_adapt/tls_automation_policies_10.txt
new file mode 100644
index 0000000..b6832ad
--- /dev/null
+++ b/caddytest/integration/caddyfile_adapt/tls_automation_policies_10.txt
@@ -0,0 +1,58 @@
+# example from issue #4667
+{
+ auto_https off
+}
+
+https://, example.com {
+ tls test.crt test.key
+ respond "Hello World"
+}
+----------
+{
+ "apps": {
+ "http": {
+ "servers": {
+ "srv0": {
+ "listen": [
+ ":443"
+ ],
+ "routes": [
+ {
+ "handle": [
+ {
+ "body": "Hello World",
+ "handler": "static_response"
+ }
+ ]
+ }
+ ],
+ "tls_connection_policies": [
+ {
+ "certificate_selection": {
+ "any_tag": [
+ "cert0"
+ ]
+ }
+ }
+ ],
+ "automatic_https": {
+ "disable": true
+ }
+ }
+ }
+ },
+ "tls": {
+ "certificates": {
+ "load_files": [
+ {
+ "certificate": "test.crt",
+ "key": "test.key",
+ "tags": [
+ "cert0"
+ ]
+ }
+ ]
+ }
+ }
+ }
+} \ No newline at end of file