From d56c3c3155216e36d048a0474f7adbf88fb5eff3 Mon Sep 17 00:00:00 2001 From: Daniere Mathieu Date: Sat, 28 Oct 2023 13:40:26 +0200 Subject: [PATCH] try fixing crsf token problem --- apps/koillection/config.json | 9 ++++++++- apps/koillection/docker-compose.yml | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/apps/koillection/config.json b/apps/koillection/config.json index c5c139cf..db6e29cc 100644 --- a/apps/koillection/config.json +++ b/apps/koillection/config.json @@ -12,5 +12,12 @@ "author": "https://github.com/benjaminjonard", "source": "https://github.com/benjaminjonard/koillection", "website": "https://koillection.github.io/", - "form_fields": [] + "form_fields": [ + { + "type": "boolean", + "label": "https enable", + "required": true, + "env_variable": "HTTPS_ENABLED" + } + ] } \ No newline at end of file diff --git a/apps/koillection/docker-compose.yml b/apps/koillection/docker-compose.yml index 1cc25c82..a7e1fa21 100644 --- a/apps/koillection/docker-compose.yml +++ b/apps/koillection/docker-compose.yml @@ -14,7 +14,7 @@ services: environment: - APP_DEBUG=0 - APP_ENV=prod - - HTTPS_ENABLED=1 + - HTTPS_ENABLED={HTTPS_ENABLED} - UPLOAD_MAX_FILESIZE=20M - PHP_MEMORY_LIMIT=512M - PHP_TZ=${TZ}