# ========================================
# Studio EinsZwoVier - Environment Configuration
# ========================================
# Copy this file to .env and update with your settings

# ========================================
# SERVER CONFIGURATION
# ========================================
# Change this to your server's hostname or IP address
SERVER_HOSTNAME=einszwovier.local

# Environment
ENVIRONMENT=production

# ========================================
# PRINT CALCULATOR SETTINGS
# ========================================
RATE_PER_M2_BLACK=4.0
RATE_PER_M2_COLOR=5.0

# ========================================
# MATRIX SERVER SETTINGS
# ========================================
# Matrix user format: @username:${SERVER_HOSTNAME}
MATRIX_USER="@einszwovier:${SERVER_HOSTNAME}"
MATRIX_PASS="your_matrix_password_here"
MATRIX_HOMESERVER="http://${SERVER_HOSTNAME}:8008"

# Matrix Room ID (get this after first setup using get_room_id.py)
# Format: !roomid:${SERVER_HOSTNAME}
MATRIX_ROOM="!eFWbWEnYsgeIKqyfjw:${SERVER_HOSTNAME}"

# ========================================
# BOOKSTACK (WIKI) SETTINGS
# ========================================
BOOKSTACK_VERSION=latest
BOOKSTACK_PORT=6875
BOOKSTACK_APP_URL=http://${SERVER_HOSTNAME}:6875

# Generate new key with: docker run --rm linuxserver/bookstack php artisan key:generate --show
BOOKSTACK_APP_KEY=base64:YOUR_BOOKSTACK_KEY_HERE

# ========================================
# DATABASE SETTINGS (BookStack)
# ========================================
DB_HOST=bookstack-mariadb
DB_PORT=3306
BOOKSTACK_DB_DATABASE=bookstack
BOOKSTACK_DB_USERNAME=bookstack
BOOKSTACK_DB_PASSWORD=your_secure_database_password_here

# MariaDB root password
MARIADB_ROOT_PASSWORD=your_secure_root_password_here

# ========================================
# MATRIX SYNAPSE SETTINGS
# ========================================
SYNAPSE_PORT=8008
SYNAPSE_SERVER_NAME=${SERVER_HOSTNAME}

# ========================================
# OLLAMA (LLM) SETTINGS
# ========================================
OLLAMA_PORT=11434

# ========================================
# OPEN-WEBUI SETTINGS
# ========================================
OPENWEBUI_PORT=8080
OPENWEBUI_OLLAMA_BASE_URL=http://ollama:11434

# ========================================
# PORTAINER (ADMIN) SETTINGS
# ========================================
PORTAINER_PORT=9000

# ========================================
# NOTES FOR NEW SERVER SETUP
# ========================================
# 1. Copy this file to .env
# 2. Update SERVER_HOSTNAME to your new server
# 3. Generate new BOOKSTACK_APP_KEY
# 4. Change all passwords to secure values
# 5. After starting Matrix, run get_room_id.py to get MATRIX_ROOM
# 6. Run: docker-compose up -d --build
