From 61d30315ece11c7986de161d2adbefb584f2bbb8 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Fri, 26 Jan 2024 13:13:42 +0800 Subject: [PATCH] :memo: Add warden app example config --- config/example.toml | 32 +++++++++++++++++--------------- test/data/.gitignore | 4 +--- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/config/example.toml b/config/example.toml index 34b11f7..d08152b 100644 --- a/config/example.toml +++ b/config/example.toml @@ -1,16 +1,5 @@ id = "example-region" -[[locations]] -id = "example-sse" -host = ["localhost:8000"] -path = ["/sse"] -[[locations.destinations]] -id = "example-sse-destination" -uri = "http://localhost:5000?sse=enable" -[[locations.transformers]] -type = "replacePath" -options = { pattern = "/sse", value = "" } - [[locations]] id = "example-websocket" host = ["localhost:8000"] @@ -20,9 +9,22 @@ id = "example-websocket-destination" uri = "http://localhost:8765" [[locations]] -id = "example-location" -host = ["localhost:8000"] +id = "example-warden" +host = ["localhost:4321"] path = ["/"] [[locations.destinations]] -id = "example-destination" -uri = "files://test/data" \ No newline at end of file +id = "example-warden-destination" + +[[applications]] +id = "example-warden-app" +workdir = "test/data/warden" +command = ["node", "dist/server/entry.mjs"] +environment = ["PUBLIC_CMS=https://smartsheep.studio"] + +# [[locations]] +# id = "example-location" +# host = ["localhost:8000"] +# path = ["/"] +# [[locations.destinations]] +# id = "example-destination" +# uri = "files://test/data" \ No newline at end of file diff --git a/test/data/.gitignore b/test/data/.gitignore index 29e9b8d..cf5ab73 100644 --- a/test/data/.gitignore +++ b/test/data/.gitignore @@ -1,3 +1 @@ -/ssr -/spa -/congress \ No newline at end of file +/warden \ No newline at end of file