hm_ems_report/.env.example
Vadym Samoilenko 2aeb8299ac Add simple login authentication
Added session-based login system to protect the application.

Features:
- Login page with credentials: admin3_M / Pa$$w0rd2026_!
- Session-based authentication using Flask sessions
- All routes protected with @login_required decorator
- Logout functionality with button in header
- Clean login UI matching H&M branding

Security:
- Secret key for session encryption (should be set via env var)
- Password stored in code (consider hashing for production)

Files:
- server.py: Added login/logout routes and auth decorator
- static/index.html: Added logout button in header
- static/logout.html: Logout redirect page
- .env.example: Added SECRET_KEY configuration

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 21:52:04 +00:00

20 lines
467 B
Text

# H&M EMS Configuration Example
# Copy this file to .env and adjust values
# Data directories
MASTER_JSON_DIR=/opt/hm-ems-data/Master_Json
IMAGE_BASE_PATH=/opt/hm-ems-data/campaign_images
# Server configuration
PORT=5000
WORKERS=4
# Security
SECRET_KEY=change-this-to-random-string-in-production
# Deployment paths
DEPLOY_USER=vadym.samoilenko
DEPLOY_GROUP=vadym.samoilenko
WEB_DIR=/var/www/html/hm-ems-report
APP_DIR=/opt/hm_ems_report
DATA_DIR=/opt/hm-ems-data