summaryrefslogtreecommitdiff
path: root/caddytest
diff options
context:
space:
mode:
authorFrancis Lavoie <lavofr@gmail.com>2020-05-19 18:59:51 -0400
committerGitHub <noreply@github.com>2020-05-19 16:59:51 -0600
commitfae064262d9c40393d634660b94d36ce6703aa1c (patch)
treee450612a8241255d7646a23ef9d1bd88c4a6fabd /caddytest
parent9ee01dceac0a3e9f71c3b37dfbe3ae04e2f54986 (diff)
httpcaddyfile: Add `auto_https` global option (#3284)
Diffstat (limited to 'caddytest')
-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