Skip to content
This repository was archived by the owner on Jan 7, 2026. It is now read-only.

Commit a86ed73

Browse files
committed
add env to support remote web app debugging
1 parent 7654dba commit a86ed73

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.env.example

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,8 @@ LOG_VIEWER_CACHE_DRIVER=file
2828
# DB_ROOT_PASSWORD=rootpassword
2929
# DB_DATABASE=lychee
3030
# DB_USERNAME=lychee
31-
# DB_PASSWORD=lychee
31+
# DB_PASSWORD=lychee
32+
33+
# Allows to use remote connection via vite proxy.
34+
# This disables the graceful handling of sessions expirations.
35+
#VITE_HTTP_PROXY_ENABLED=false

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ services:
122122
- REDIS_PORT=${REDIS_PORT:-6379}
123123
- REDIS_PASSWORD=${REDIS_PASSWORD:-}
124124
- LOG_VIEWER_CACHE_DRIVER=${LOG_VIEWER_CACHE_DRIVER:-file}
125+
- VITE_HTTP_PROXY_ENABLED=${VITE_HTTP_PROXY_ENABLED:-false}
125126
restart: unless-stopped
126127
depends_on:
127128
- lychee_db

inject.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,3 +317,6 @@ if [ "$PHP_TZ" != '' ]; then
317317
sed -i "s|;*date.timezone =.*|date.timezone = ${PHP_TZ}|i" /etc/php/8.4/cli/php.ini
318318
sed -i "s|;*date.timezone =.*|date.timezone = ${PHP_TZ}|i" /etc/php/8.4/fpm/php.ini
319319
fi
320+
if [ "$VITE_HTTP_PROXY_ENABLED" != '' ]; then
321+
replace_or_insert "VITE_HTTP_PROXY_ENABLED" "$VITE_HTTP_PROXY_ENABLED"
322+
fi

0 commit comments

Comments
 (0)