Skip to content

Commit 5d80ff3

Browse files
ildyriad7415
andauthored
Improve .env.example (#3004)
* improve .env.example * Update .env.example Co-authored-by: Martin Stone <[email protected]> --------- Co-authored-by: Martin Stone <[email protected]>
1 parent afabb49 commit 5d80ff3

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.env.example

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,23 @@ DB_LIST_FOREIGN_KEYS=false
102102
# Support for token based authentication used by API requests. Enabled by default.
103103
# ENABLE_TOKEN_AUTH=true
104104

105+
# Lychee supports both Redis and file caching.
106+
# To use Redis, set CACHE_DRIVER to redis and configure the Redis connection.
105107
CACHE_DRIVER=file
108+
REDIS_HOST=127.0.0.1
109+
REDIS_PASSWORD=null
110+
REDIS_PORT=6379
111+
# REDIS_URL=redis://<username>:<password>@<host>:<port>
112+
113+
# If you use Redis as cache driver, we strongly recommend
114+
# to disable it for your Log Viewer.
115+
# Should redis crash, you will no longer be able to access your logs.
116+
LOG_VIEWER_CACHE_DRIVER=file
117+
118+
# Session configuration
106119
SESSION_DRIVER=file
107120
SESSION_LIFETIME=120
121+
108122
# `sync` if jobs needs to be executed live (default) or `database` if they can be defered.
109123
QUEUE_CONNECTION=sync
110124

@@ -119,10 +133,6 @@ SECURITY_HEADER_CSP_IMG_SRC=
119133
SECURITY_HEADER_CSP_MEDIA_SRC=
120134
SESSION_SECURE_COOKIE=false
121135

122-
REDIS_HOST=127.0.0.1
123-
REDIS_PASSWORD=null
124-
REDIS_PORT=6379
125-
126136
MAIL_DRIVER=smtp
127137
MAIL_HOST=
128138
MAIL_PORT=

0 commit comments

Comments
 (0)