From adecac69618acbeeac471a265284e3033798f49d Mon Sep 17 00:00:00 2001 From: ildyria Date: Thu, 13 Feb 2025 13:48:26 +0100 Subject: [PATCH 1/2] improve .env.example --- .env.example | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.env.example b/.env.example index 7081a90f0b6..85709471a05 100644 --- a/.env.example +++ b/.env.example @@ -102,9 +102,23 @@ DB_LIST_FOREIGN_KEYS=false # Support for token based authentication used by API requests. Enabled by default. # ENABLE_TOKEN_AUTH=true +# Lychee support both Redis and file caching. +# To use Redis, set CACHE_DRIVER to redis and configure the Redis connection. CACHE_DRIVER=file +REDIS_HOST=127.0.0.1 +REDIS_PASSWORD=null +REDIS_PORT=6379 +# REDIS_URL=redis://:@: + +# If you use Redis as cache driver, we strongly recommend +# to disable it for your Log Viewer. +# Should redis crash, you will no longer be able to access your logs. +LOG_VIEWER_CACHE_DRIVER=file + +# Session configuration SESSION_DRIVER=file SESSION_LIFETIME=120 + # `sync` if jobs needs to be executed live (default) or `database` if they can be defered. QUEUE_CONNECTION=sync @@ -119,10 +133,6 @@ SECURITY_HEADER_CSP_IMG_SRC= SECURITY_HEADER_CSP_MEDIA_SRC= SESSION_SECURE_COOKIE=false -REDIS_HOST=127.0.0.1 -REDIS_PASSWORD=null -REDIS_PORT=6379 - MAIL_DRIVER=smtp MAIL_HOST= MAIL_PORT= From 24c6ad032181654574cf44d477c2e3b6b6b00a76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Viguier?= Date: Fri, 14 Feb 2025 08:28:23 +0100 Subject: [PATCH 2/2] Update .env.example Co-authored-by: Martin Stone <1611702+d7415@users.noreply.github.com> --- .env.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 85709471a05..a2f68ad497e 100644 --- a/.env.example +++ b/.env.example @@ -102,7 +102,7 @@ DB_LIST_FOREIGN_KEYS=false # Support for token based authentication used by API requests. Enabled by default. # ENABLE_TOKEN_AUTH=true -# Lychee support both Redis and file caching. +# Lychee supports both Redis and file caching. # To use Redis, set CACHE_DRIVER to redis and configure the Redis connection. CACHE_DRIVER=file REDIS_HOST=127.0.0.1