github.com/avenga/couper@v1.12.2/server/testdata/integration/files_spa_api/01_couper.hcl (about)

     1  server "spa" {
     2    error_file = "./../server_error.html"
     3    files {
     4      document_root = "./"
     5    }
     6    spa {
     7      bootstrap_file = "01_app.html"
     8      paths = ["/**"]
     9      bootstrap_data = {
    10        default = default(env.NOT_THERE, "true")
    11      }
    12    }
    13    api {
    14      error_file = "./../api_error.json"
    15      endpoint "/api" {
    16        proxy {
    17          backend = "anything"
    18        }
    19      }
    20    }
    21  }
    22  
    23  definitions {
    24    # backend origin within a definition block gets replaced with the integration test "anything" server.
    25    backend "anything" {
    26      path = "/anything"
    27      origin = env.COUPER_TEST_BACKEND_ADDR
    28    }
    29  }