github.com/avenga/couper@v1.12.2/server/testdata/integration/vhosts/01_couper.hcl (about) 1 server "v-server1" { 2 hosts = ["*", "example.com", "example.org:9876"] 3 error_file = "./../server_error.html" 4 5 files { 6 document_root = "./htdocs_01" 7 } 8 9 spa { 10 bootstrap_file = "01_app.html" 11 paths = ["/spa1/**"] 12 } 13 14 api { 15 base_path = "/api" 16 error_file = "./../api_error.json" 17 18 endpoint "/" { 19 proxy { 20 backend = "anything" 21 } 22 } 23 } 24 } 25 26 server "v-server2" { 27 hosts = ["couper.io", "example.net:9876"] 28 29 error_file = "./../server_error.html" 30 31 files { 32 document_root = "./htdocs_02" 33 } 34 35 spa { 36 bootstrap_file = "02_app.html" 37 paths = ["/spa2/**"] 38 } 39 40 api { 41 base_path = "/api/v2" 42 error_file = "./../api_error.json" 43 44 endpoint "/" { 45 proxy { 46 backend = "anything" 47 } 48 } 49 } 50 } 51 52 server "v-server3" { 53 hosts = ["v-server3.com"] 54 error_file = "./../server_error.html" 55 56 files { 57 document_root = "./htdocs_03" 58 } 59 } 60 61 definitions { 62 # backend origin within a definition block gets replaced with the integration test "anything" server. 63 backend "anything" { 64 path = "/anything" 65 origin = env.COUPER_TEST_BACKEND_ADDR 66 } 67 }