kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 61c06291b62ce238a332a651b26cfca9f531f20d
parent 0abc9b19ffe51be1ed95ce6bb35832cb0fdb24cd
Author: Joris Vink <joris@coders.se>
Date:   Mon, 10 May 2021 10:27:32 +0200

Add a docker python kore.config.deployment setting.

This keeps kore in the foreground will still doing privsep.
Useful with upcoming official kore docker images.

Diffstat:
src/config.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/config.c b/src/config.c @@ -1866,7 +1866,9 @@ configure_task_threads(char *option) static int configure_deployment(char *value) { - if (!strcmp(value, "dev") || !strcmp(value, "development")) { + if (!strcmp(value, "docker")) { + kore_foreground = 1; + } else if (!strcmp(value, "dev") || !strcmp(value, "development")) { kore_foreground = 1; skip_runas = 1; skip_chroot = 1;