summaryrefslogtreecommitdiff
path: root/caddytest/integration/caddyfile_adapt/global_server_options_multi.txt
diff options
context:
space:
mode:
Diffstat (limited to 'caddytest/integration/caddyfile_adapt/global_server_options_multi.txt')
-rw-r--r--caddytest/integration/caddyfile_adapt/global_server_options_multi.txt83
1 files changed, 83 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/global_server_options_multi.txt b/caddytest/integration/caddyfile_adapt/global_server_options_multi.txt
new file mode 100644
index 0000000..653eee5
--- /dev/null
+++ b/caddytest/integration/caddyfile_adapt/global_server_options_multi.txt
@@ -0,0 +1,83 @@
+{
+ servers {
+ timeouts {
+ idle 90s
+ }
+ }
+ servers :80 {
+ timeouts {
+ idle 60s
+ }
+ }
+ servers :443 {
+ timeouts {
+ idle 30s
+ }
+ }
+}
+
+foo.com {
+}
+
+http://bar.com {
+}
+
+:8080 {
+}
+
+----------
+{
+ "apps": {
+ "http": {
+ "servers": {
+ "srv0": {
+ "listen": [
+ ":443"
+ ],
+ "idle_timeout": 30000000000,
+ "routes": [
+ {
+ "match": [
+ {
+ "host": [
+ "foo.com"
+ ]
+ }
+ ],
+ "terminal": true
+ }
+ ]
+ },
+ "srv1": {
+ "listen": [
+ ":80"
+ ],
+ "idle_timeout": 60000000000,
+ "routes": [
+ {
+ "match": [
+ {
+ "host": [
+ "bar.com"
+ ]
+ }
+ ],
+ "terminal": true
+ }
+ ],
+ "automatic_https": {
+ "skip": [
+ "bar.com"
+ ]
+ }
+ },
+ "srv2": {
+ "listen": [
+ ":8080"
+ ],
+ "idle_timeout": 90000000000
+ }
+ }
+ }
+ }
+}