Fixed login with only ip:port access
This commit is contained in:
@@ -1,46 +1,17 @@
|
||||
# Mailcow Alias Manager - Docker Compose Configuration
|
||||
#
|
||||
# Production vs Development Mode:
|
||||
# --------------------------------
|
||||
# FLASK_ENV=production + FLASK_DEBUG=False → Uses Gunicorn (4 workers, production-ready)
|
||||
# FLASK_ENV=development or FLASK_DEBUG=True → Uses Flask dev server (auto-reload, debug info)
|
||||
#
|
||||
# Recommended Settings:
|
||||
# - Production: FLASK_ENV=production, FLASK_DEBUG=False (default)
|
||||
# - Development: FLASK_ENV=development, FLASK_DEBUG=True
|
||||
#
|
||||
# Reverse Proxy Support:
|
||||
# ----------------------
|
||||
# This application is configured to work behind reverse proxies (Nginx, Traefik, Zoraxy, Authelia, etc.)
|
||||
# The ProxyFix middleware automatically handles X-Forwarded-* headers for HTTPS detection
|
||||
# No additional configuration needed for most standard proxy setups
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
mailcow-alias-manager:
|
||||
image: gitlab.pm/rune/malias-web:latest
|
||||
container_name: mailcow-alias-manager
|
||||
ports:
|
||||
- "5172:5172"
|
||||
volumes:
|
||||
- ./data:/app/data
|
||||
build: .
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- TZ=Europe/Oslo
|
||||
|
||||
# Flask Configuration
|
||||
# Set to 'production' for Gunicorn (recommended) or 'development' for Flask dev server
|
||||
- FLASK_ENV=production
|
||||
|
||||
# Debug mode: False for production (recommended), True for development/troubleshooting
|
||||
- FLASK_DEBUG=False
|
||||
|
||||
# Port configuration (default: 5172)
|
||||
- FLASK_PORT=5172
|
||||
|
||||
# Host binding (default: 0.0.0.0 for Docker)
|
||||
- FLASK_PORT=5142
|
||||
- FLASK_HOST=0.0.0.0
|
||||
|
||||
# Secret key for sessions - CRITICAL for multi-worker Gunicorn!
|
||||
# All workers must use the SAME secret key to decode session cookies
|
||||
# Generate with: python3 -c "import secrets; print(secrets.token_hex(32))"
|
||||
- SECRET_KEY=dca6920115b8bbc13c346c75d668a49849590c77d9baaf903296582f24ff816a
|
||||
- FLASK_ENV=production
|
||||
- FLASK_DEBUG=False
|
||||
# Set to 'true' to enable proxy/Authelia integration, 'false' for direct IP:port access
|
||||
- ENABLE_PROXY=false
|
||||
volumes:
|
||||
- ./data:/app/data
|
||||
ports:
|
||||
- "5142:5142"
|
||||
Reference in New Issue
Block a user