From a793b63d75682508145b163341eb12f06c1a11c4 Mon Sep 17 00:00:00 2001 From: Fabrizio Mele Date: Fri, 26 Jul 2024 00:00:09 +0200 Subject: [PATCH 1/2] feat: added new option to schema added `nginx` option to the schema --- src/schemas/json/monade-stack-config.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/schemas/json/monade-stack-config.json b/src/schemas/json/monade-stack-config.json index ccff5d18e92..e2b14ca639e 100644 --- a/src/schemas/json/monade-stack-config.json +++ b/src/schemas/json/monade-stack-config.json @@ -9,6 +9,12 @@ "type": "string", "description": "The name of the stack. It will be used as a prefix for the stack's resources" }, + "nginx": { + "type": "string", + "enum": ["system", "local"], + "default": "system", + "description": "Specifies whether to use the system-wide nginx service or spawn a local nginx process among other services. If not specified, 'system' is implied. Local nginx requires an nginx binary in the path. System wide nginx configuration is left to the user." + }, "services": { "type": "object", "description": "The services to be run in the stack. Each service is represented by its name, which is the key", From 2e674cf412125fc6c2a5cb396a2b97538e7c11c8 Mon Sep 17 00:00:00 2001 From: Fabrizio Mele Date: Fri, 26 Jul 2024 00:02:04 +0200 Subject: [PATCH 2/2] feat: updated test example with new property --- src/test/monade-stack-config/example.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/monade-stack-config/example.yaml b/src/test/monade-stack-config/example.yaml index a200ea7b5bc..d26b7a011e2 100644 --- a/src/test/monade-stack-config/example.yaml +++ b/src/test/monade-stack-config/example.yaml @@ -1,4 +1,5 @@ name: myapp +nginx: local services: api: command: 'yarn dev'