fix: paheko

This commit is contained in:
grubshka 2026-04-04 00:13:35 +02:00
parent a4a80bd72a
commit 6c05624bd5

View file

@ -3,9 +3,36 @@ services:
image: bololo/paheko:latest
restart: unless-stopped
volumes:
- ./config.local.php:/var/www/paheko/config.local.php:ro
- /data/lail-apps/lail-paheko/data:/var/www/paheko/data
- /data/lail-apps/lail-paheko/plugins:/var/www/paheko/plugins
- type: bind
source: ./config.local.php
target: /var/www/paheko/config.local.php
content: |
<?php
const SHOW_ERRORS = false;
const SQLITE_JOURNAL_MODE = 'WAL';
const OIDC_CLIENT_BUTTON = getenv('PAHEKO_OIDC_CLIENT_BUTTON') ?: 'Se connecter avec le SSO LAIL';
const OIDC_CLIENT_URL = getenv('PAHEKO_OIDC_CLIENT_URL') ?: null;
const OIDC_CLIENT_ID = getenv('PAHEKO_OIDC_CLIENT_ID') ?: null;
const OIDC_CLIENT_SECRET = getenv('PAHEKO_OIDC_CLIENT_SECRET') ?: null;
const OIDC_CLIENT_MATCH_EMAIL = true;
const SMTP_HOST = getenv('PAHEKO_SMTP_HOST') ?: null;
const SMTP_PORT = getenv('PAHEKO_SMTP_PORT') ? (int) getenv('PAHEKO_SMTP_PORT') : 587;
const SMTP_USER = getenv('PAHEKO_SMTP_USER') ?: null;
const SMTP_PASSWORD = getenv('PAHEKO_SMTP_PASSWORD') ?: null;
const SMTP_SECURITY = getenv('PAHEKO_SMTP_SECURITY') ?: 'STARTTLS';
const SMTP_HELO_HOSTNAME = getenv('PAHEKO_SMTP_HELO_HOSTNAME') ?: null;
const MAIL_RETURN_PATH = getenv('PAHEKO_MAIL_RETURN_PATH') ?: null;
const MAIL_SENDER = getenv('PAHEKO_MAIL_SENDER') ?: null;
const DATA_ROOT = '/var/www/paheko/data';
const WOPI_DISCOVERY_URL = getenv('PAHEKO_WOPI_DISCOVERY_URL') ?: null;
const CONVERSION_TOOLS = ['collabora'];
const API_USER = getenv('PAHEKO_API_USER') ?: null;
const API_PASSWORD = getenv('PAHEKO_API_PASSWORD') ?: null;
const LEGAL_HOSTING_DETAILS = getenv('PAHEKO_LEGAL_HOSTING_DETAILS');
const DISABLE_INSTALL_PING = true;
const ENABLE_UPGRADES = false;
labels:
- traefik.enable=true
- traefik.http.routers.paheko.rule=Host(`paheko.lail.cloud`)