Skip to content

Commit 900f284

Browse files
committed
fix: Add SECRET_KEY environment variable for Flask sessions in nutify
The Flask application requires SECRET_KEY for session management, but only ENCRYPTION_KEY was being set. This caused "session is unavailable" errors when accessing the web interface. Both variables now use the same NUTIFY_ENCRYPTION_KEY value from the service environment file, ensuring Flask sessions work properly.
1 parent a45dbff commit 900f284

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

services-available/nutify.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ services:
4040
- SERVER_NAME=${NUTIFY_SERVER_NAME:-Nutify} # Name of the server (displayed in UI)
4141
- SERVER_PORT=${NUTIFY_PORT:-5050} # Port for web interface
4242
- SERVER_HOST=${NUTIFY_HOST:-0.0.0.0} # Host address to bind web server (0.0.0.0 = all interfaces)
43+
- SECRET_KEY=${NUTIFY_ENCRYPTION_KEY:-secretkey} # Flask secret key for sessions (MUST be set, min 32 characters)
4344
- ENCRYPTION_KEY=${NUTIFY_ENCRYPTION_KEY:-secretkey} # Secret key for data encryption for mail password (MUST be set) and should be at least 32 characters long for security
4445

4546
# ===== UPS CONNECTION SETTINGS =====

0 commit comments

Comments
 (0)