github.com/avenga/couper@v1.12.2/server/testdata/file_serving/conf_test.hcl (about) 1 server "TestFileServing" { 2 hosts = ["example.com"] 3 4 base_path = "/apps/shiny-product" 5 error_file = "./error.html" 6 7 files { 8 document_root = "./htdocs" 9 } 10 11 api { 12 base_path = "/api" 13 error_file = "./error.json" 14 15 endpoint "/" { 16 proxy { 17 backend { 18 origin = "{{.origin}}" 19 hostname = "{{.hostname}}" 20 } 21 } 22 } 23 } 24 25 spa { 26 base_path = "/app" 27 bootstrap_file = "./htdocs/spa.html" 28 paths = ["/**"] 29 } 30 }