Files
Plenario/config/.env.example
T
gnilebeinandClaude Sonnet 5.5 a395b50894
CI / Deploy / PHP 8.4 (push) Successful in 1m10s
CI / Deploy / PHP 8.5 (push) Successful in 1m16s
CI / Deploy / test (push) Successful in 1s
CI / Deploy / deploy (push) Skipped
Add optional images to slides
Slides (except YouTube) can carry one image. Uploads are validated, rotated
by EXIF orientation, scaled to 1600 px and stored as WebP outside webroot,
which also strips camera metadata. Images have an alt text (or are marked
decorative) and a layout: top, side or full screen (content slides).

Files are removed after the commit when a slide is deleted or its image is
replaced, with the poll, and `bin/cake images_cleanup` sweeps leftovers.
Duplicated slides get their own file. Docker image gains gd with WebP.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 23:17:37 +01:00

56 lines
2.5 KiB
Bash

# PlenarIO environment configuration
# Copy to config/.env (not committed) or set these as real environment variables.
# Real environment variables take precedence over this file.
# --- Core -------------------------------------------------------------------
DEBUG=false
# Absolute URL used in e-mails, MUST be set in production
APP_FULL_BASE_URL=https://plenario.example.org
# Generate with: php -r "echo bin2hex(random_bytes(32));"
SECURITY_SALT=change-me-to-a-long-random-string
APP_DEFAULT_LOCALE=de_DE
# --- Database ---------------------------------------------------------------
# Empty = SQLite file data/plenario.sqlite
# DATABASE_URL=mysql://user:password@localhost/plenario?encoding=utf8mb4
# DATABASE_URL=postgres://user:password@localhost/plenario
# --- Mail -------------------------------------------------------------------
# Empty = .eml files in tmp/mails/ (development only!)
# SMTP_HOST=mail.example.org
# SMTP_PORT=587
# SMTP_USER=noreply@example.org
# SMTP_PASSWORD=secret
# true = STARTTLS (port 587); port 465 uses implicit SSL automatically; false = unencrypted
# SMTP_TLS=true
MAIL_FROM=noreply@plenario.example.org
MAIL_FROM_NAME=PlenarIO
# --- Captcha ----------------------------------------------------------------
# none | math | recaptcha
CAPTCHA_TYPE=math
# Only for CAPTCHA_TYPE=recaptcha (reCAPTCHA v2 checkbox, https://www.google.com/recaptcha/admin)
RECAPTCHA_SITE_KEY=
RECAPTCHA_SECRET_KEY=
# --- Behaviour --------------------------------------------------------------
# Show the admin link right after creation (development only, never in production)
SHOW_ADMIN_LINK_AFTER_CREATE=false
# Max. polls / recovery mails per IP and hour (0 = unlimited)
THROTTLE_CREATE_PER_HOUR=10
THROTTLE_RECOVER_PER_HOUR=5
# Max. answers per IP and minute (0 = unlimited). Keep it high: a whole audience may share one Wi-Fi/IP.
THROTTLE_VOTES_PER_MINUTE=600
# How often presenter and participant pages poll for updates (ms)
POLL_INTERVAL_MS=2000
# Slide images: directory (default data/uploads; in containers e.g. /data/uploads), largest upload in MB
# (PHP's upload_max_filesize and post_max_size must allow it) and slides with an image per poll
# UPLOADS_PATH=/var/www/plenario-uploads
IMAGE_MAX_UPLOAD_MB=10
IMAGE_MAX_PER_POLL=20
# Embedded slides (/e/{key}/{slide}, e.g. Canva): heartbeat interval and timeout until pause (s)
EMBED_HEARTBEAT_SECONDS=5
EMBED_TIMEOUT_SECONDS=20
# CSP frame-ancestors of embed pages, e.g. "https://*.canva.com https://*.iframe.ly" ('*' = any site)
EMBED_FRAME_ANCESTORS=*