summaryrefslogtreecommitdiff
path: root/caddytest/integration/caddyfile_adapt
diff options
context:
space:
mode:
authorFrancis Lavoie <lavofr@gmail.com>2023-01-27 14:56:39 -0500
committerGitHub <noreply@github.com>2023-01-27 14:56:39 -0500
commit7f2a93e6c36ceec9e007baeedeb594ab0dc43a71 (patch)
tree647a3d94cbd244d01de58d455d076309194fb6b2 /caddytest/integration/caddyfile_adapt
parente9d95ab29f6cbf24fd3f7f7fd439ab31e2797f93 (diff)
caddyfile: Allow overriding server names (#5323)
Diffstat (limited to 'caddytest/integration/caddyfile_adapt')
-rw-r--r--caddytest/integration/caddyfile_adapt/server_names.txt77
1 files changed, 77 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/server_names.txt b/caddytest/integration/caddyfile_adapt/server_names.txt
new file mode 100644
index 0000000..e43eb8c
--- /dev/null
+++ b/caddytest/integration/caddyfile_adapt/server_names.txt
@@ -0,0 +1,77 @@
+{
+ servers :443 {
+ name https
+ }
+
+ servers :8000 {
+ name app1
+ }
+
+ servers :8001 {
+ name app2
+ }
+
+ servers 123.123.123.123:8002 {
+ name bind-server
+ }
+}
+
+example.com {
+}
+
+:8000 {
+}
+
+:8001, :8002 {
+}
+
+:8002 {
+ bind 123.123.123.123 222.222.222.222
+}
+----------
+{
+ "apps": {
+ "http": {
+ "servers": {
+ "app1": {
+ "listen": [
+ ":8000"
+ ]
+ },
+ "app2": {
+ "listen": [
+ ":8001"
+ ]
+ },
+ "bind-server": {
+ "listen": [
+ "123.123.123.123:8002",
+ "222.222.222.222:8002"
+ ]
+ },
+ "https": {
+ "listen": [
+ ":443"
+ ],
+ "routes": [
+ {
+ "match": [
+ {
+ "host": [
+ "example.com"
+ ]
+ }
+ ],
+ "terminal": true
+ }
+ ]
+ },
+ "srv4": {
+ "listen": [
+ ":8002"
+ ]
+ }
+ }
+ }
+ }
+} \ No newline at end of file