summaryrefslogtreecommitdiff
path: root/caddytest/integration
diff options
context:
space:
mode:
Diffstat (limited to 'caddytest/integration')
-rw-r--r--caddytest/integration/caddyfile_adapt/auto_https_disable_redirects.txt34
-rw-r--r--caddytest/integration/caddyfile_adapt/auto_https_off.txt37
2 files changed, 71 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/auto_https_disable_redirects.txt b/caddytest/integration/caddyfile_adapt/auto_https_disable_redirects.txt
new file mode 100644
index 0000000..61637bb
--- /dev/null
+++ b/caddytest/integration/caddyfile_adapt/auto_https_disable_redirects.txt
@@ -0,0 +1,34 @@
+{
+ auto_https disable_redirects
+}
+
+localhost
+----------
+{
+ "apps": {
+ "http": {
+ "servers": {
+ "srv0": {
+ "listen": [
+ ":443"
+ ],
+ "routes": [
+ {
+ "match": [
+ {
+ "host": [
+ "localhost"
+ ]
+ }
+ ],
+ "terminal": true
+ }
+ ],
+ "automatic_https": {
+ "disable_redirects": true
+ }
+ }
+ }
+ }
+ }
+} \ No newline at end of file
diff --git a/caddytest/integration/caddyfile_adapt/auto_https_off.txt b/caddytest/integration/caddyfile_adapt/auto_https_off.txt
new file mode 100644
index 0000000..d4014d2
--- /dev/null
+++ b/caddytest/integration/caddyfile_adapt/auto_https_off.txt
@@ -0,0 +1,37 @@
+{
+ auto_https off
+}
+
+localhost
+----------
+{
+ "apps": {
+ "http": {
+ "servers": {
+ "srv0": {
+ "listen": [
+ ":443"
+ ],
+ "routes": [
+ {
+ "match": [
+ {
+ "host": [
+ "localhost"
+ ]
+ }
+ ],
+ "terminal": true
+ }
+ ],
+ "tls_connection_policies": [
+ {}
+ ],
+ "automatic_https": {
+ "disable": true
+ }
+ }
+ }
+ }
+ }
+} \ No newline at end of file