Add initial Plenario live polling app
CI / Deploy / test (push) Successful in 49s
CI / Deploy / deploy (push) Failing after 5s

CakePHP 5.4 app for live polls: create via email without login, manage
via secret admin link, join via code. Includes slide types (choice,
wordcloud, open, scale, content), presenter mode, CSV export, captcha,
throttling, tests and Gitea CI/deploy workflow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Opus 5.5 committed 2026-11-07 13:24:29 +01:00
commit eb319f8c1e
120 files changed
+15572

No files matched your search

+68
View File
@@ -0,0 +1,68 @@
<?php
/*
* Local configuration overrides for Plenario.
*
* Copy this file to config/app_local.php (done automatically by
* `composer install`) and adjust it. app_local.php is NOT committed.
*
* Every value can alternatively be provided via environment variables.
*/
use Cake\Database\Driver\Sqlite;
use function Cake\Core\env;
return [
'debug' => filter_var(env('DEBUG', true), FILTER_VALIDATE_BOOLEAN),
'App' => [
// Absolute base URL used for links in e-mails, e.g. https://plenario.example.org
'fullBaseUrl' => env('APP_FULL_BASE_URL', 'http://localhost:8765'),
],
'Security' => [
'salt' => env('SECURITY_SALT', '__SALT__'),
],
'Plenario' => [
'captcha' => [
// 'none' | 'math' | 'recaptcha'
'type' => env('CAPTCHA_TYPE', 'math'),
'recaptcha' => [
'siteKey' => env('RECAPTCHA_SITE_KEY', ''),
'secretKey' => env('RECAPTCHA_SECRET_KEY', ''),
],
],
// Shows the admin link on the confirmation page. Development only!
'showAdminLinkAfterCreate' => filter_var(env('SHOW_ADMIN_LINK_AFTER_CREATE', env('DEBUG', true)), FILTER_VALIDATE_BOOLEAN),
],
'Datasources' => [
/*
* Default: SQLite file in data/. For MySQL/MariaDB/PostgreSQL set
* DATABASE_URL, e.g.
* mysql://user:pass@localhost/plenario?encoding=utf8mb4
*/
'default' => [
'driver' => Sqlite::class,
'database' => ROOT . DS . 'data' . DS . 'plenario.sqlite',
'url' => env('DATABASE_URL', null),
],
'test' => [
'driver' => Sqlite::class,
'database' => ROOT . DS . 'tmp' . DS . 'tests.sqlite',
'url' => env('DATABASE_TEST_URL', null),
],
],
'EmailTransport' => [
/*
* Local default: mails are written as .eml files to tmp/mails/.
* For production use SMTP, e.g.
* EMAIL_TRANSPORT_DEFAULT_URL=smtp://user:pass@mail.example.org:587?tls=true
*/
'default' => [
'className' => \App\Mailer\Transport\FileTransport::class,
'url' => env('EMAIL_TRANSPORT_DEFAULT_URL', null),
],
],
];