diff --git a/dockers/paheko2/config/config.local.php b/dockers/paheko2/config/config.local.php deleted file mode 100644 index 8b70c54..0000000 --- a/dockers/paheko2/config/config.local.php +++ /dev/null @@ -1,99 +0,0 @@ -Page non trouv??e'); -} -$user_data_dir = rtrim(FACTORY_USER_DIRECTORY, '/') . '/' . $login; -if (!is_dir($user_data_dir)) { - mkdir($user_data_dir, 0700, true); - //http_response_code(404); - //die("

Cette association n'existe pas.

"); -} -// D??finir le dossier o?? sont stock??s les donn??es -define('Paheko\DATA_ROOT', $user_data_dir); -const PREFER_HTTPS = false; -const SMTP_HOST = "smtp.kazkouil.fr"; -const SMTP_USER = null; -const API_USER = "admin_kaz"; -const API_PASSWORD = "lbXyBoYdtLz2aDXlROGGXw"; -const SMTP_PASSWORD = null; -const SMTP_PORT = 25; -const SMTP_SECURITY = 'NONE'; -const ROOT = __DIR__; -const DB_FILE = DATA_ROOT . '/association.sqlite'; -#const PLUGINS_ROOT = DATA_ROOT . '/plugins'; -const PLUGINS_ROOT = __DIR__ . '/data/plugins'; - -// D??finir l'URL -//original -//define('Garradin\WWW_URL', 'https://' . $login . FACTORY_USER_DIRECTORY . '/'); -//maj kaz -define('PAHEKO\WWW_URL', "https://".$login."-paheko.kazkouil.fr/"); -define('PAHEKO\WWW_URI', '/'); -// Désactiver le log des erreurs visible dans l'interface (sécurité) -define('PAHEKO\ERRORS_ENABLE_LOG_VIEW', true); -// Ne pas afficher les erreurs de code -define('PAHEKO\SHOW_ERRORS', true); -const PDF_COMMAND = 'prince'; diff --git a/dockers/paheko2/config/config.local.tmpl.php b/dockers/paheko2/config/config.local.tmpl.php deleted file mode 100644 index b2113da..0000000 --- a/dockers/paheko2/config/config.local.tmpl.php +++ /dev/null @@ -1,129 +0,0 @@ -Page non trouv??e'); -} - -$user_data_dir = rtrim(FACTORY_USER_DIRECTORY, '/') . '/' . $login; - - -if (!is_dir($user_data_dir)) { - mkdir($user_data_dir, 0700, true); - //http_response_code(404); - //die("

Cette association n'existe pas.

"); -} - -// D??finir le dossier o?? sont stock??s les donn??es -define('Paheko\DATA_ROOT', $user_data_dir); - -const PREFER_HTTPS = false; -const SMTP_HOST = "__SMTP_HOST__.__DOMAIN__"; -const SMTP_USER = null; -const API_USER = "__PAHEKO_API_USER__"; -const API_PASSWORD = "__PAHEKO_API_PASSWORD__"; -const SMTP_PASSWORD = null; -const SMTP_PORT = 25; -const SMTP_SECURITY = 'NONE'; -const ROOT = __DIR__; - -const DB_FILE = DATA_ROOT . '/association.sqlite'; -//const PLUGINS_ROOT = DATA_ROOT . '/plugins'; -const PLUGINS_ROOT = __DIR__ . '/data/plugins'; - -// D??finir l'URL -//original -//define('Garradin\WWW_URL', 'https://' . $login . FACTORY_USER_DIRECTORY . '/'); -//maj kaz -define('Paheko\WWW_URL', "__HTTP_PROTO__://".$login."-paheko.__DOMAIN__/"); - -define('Paheko\WWW_URI', '/'); - -// Désactiver le log des erreurs visible dans l'interface (sécurité) -define('Paheko\ERRORS_ENABLE_LOG_VIEW', true); - -// Ne pas afficher les erreurs de code -define('Paheko\SHOW_ERRORS', true); - - -#add by fab le 21/04/2022 -//const PDF_COMMAND = 'prince'; -const PDF_COMMAND = 'auto'; diff --git a/dockers/paheko2/config/factory_cron.sh b/dockers/paheko2/config/factory_cron.sh deleted file mode 100755 index 05bb4ec..0000000 --- a/dockers/paheko2/config/factory_cron.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -# Répertoire où sont stockées les données des utilisateurs -# veiller à ce que ce soit le même que dans config.local.php -FACTORY_USER_DIRECTORY="users" - -# Chemin vers le script cron.php de Paheko -PAHEKO_CRON_SCRIPT="scripts/cron.php" - -cd /usr/share/paheko - -for user in $(cd ${FACTORY_USER_DIRECTORY} && ls -1d */) -do - PAHEKO_FACTORY_USER=$(basename "$user") /usr/bin/php $PAHEKO_CRON_SCRIPT - echo $PAHEKO_FACTORY_USER -done - diff --git a/dockers/paheko2/config/factory_cron_emails.sh b/dockers/paheko2/config/factory_cron_emails.sh deleted file mode 100755 index eeed1b6..0000000 --- a/dockers/paheko2/config/factory_cron_emails.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -# Répertoire où sont stockées les données des utilisateurs -# veiller à ce que ce soit le même que dans config.local.php -FACTORY_USER_DIRECTORY="users" - -# Chemin vers le script emails.php de Paheko -PAHEKO_CRON_SCRIPT="scripts/emails.php" - -for user in $(cd ${FACTORY_USER_DIRECTORY} && ls -1d */) -do - PAHEKO_FACTORY_USER=$(basename "$user") /usr/bin/php $PAHEKO_CRON_SCRIPT - echo $PAHEKO_FACTORY_USER -done diff --git a/dockers/paheko2/config/facturation.tar.gz b/dockers/paheko2/config/facturation.tar.gz deleted file mode 100644 index 52deac4..0000000 Binary files a/dockers/paheko2/config/facturation.tar.gz and /dev/null differ diff --git a/dockers/paheko2/config/paheko.conf b/dockers/paheko2/config/paheko.conf deleted file mode 100644 index c61c2ff..0000000 --- a/dockers/paheko2/config/paheko.conf +++ /dev/null @@ -1,26 +0,0 @@ - - #ServerName paheko.kaz.bzh - DocumentRoot /usr/share/paheko/www - ErrorLog /var/log/apache2/error.log - CustomLog /var/log/apache2/access.log combined - ServerSignature Off - - - AllowOverride All - Require all granted - Options FollowSymLinks MultiViews - - Dav off - - - - - deny from all - satisfy all - ErrorDocument 403 "Access denied." - - -FallbackResource /_route.php - - - diff --git a/dockers/paheko2/config/setupWebRights.sh b/dockers/paheko2/config/setupWebRights.sh deleted file mode 100755 index 098d611..0000000 --- a/dockers/paheko2/config/setupWebRights.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -chown -R www-data: /usr/share/paheko diff --git a/dockers/paheko2/docker-compose.yml b/dockers/paheko2/docker-compose.yml deleted file mode 100644 index 51986a7..0000000 --- a/dockers/paheko2/docker-compose.yml +++ /dev/null @@ -1,41 +0,0 @@ -version: '3.5' - -services: - - paheko: - image: paheko/paheko - container_name: ${pahekoServName} - volumes: -# - ./config/paheko.conf:/etc/apache2/sites-available/000-default.conf -# - ./config/config.local.php:/usr/share/paheko/config.local.php -# - ./config/factory_cron.sh:/usr/share/paheko/factory_cron.sh -# - assoUsers:/usr/share/paheko/users - -# - ./config/paheko.conf:/etc/apache2/sites-available/000-default.conf - - ./config/config.local.php:/var/www/paheko/config.local.php - - ./config/factory_cron.sh:/var/www/paheko/factory_cron.sh - - assoUsers:/var/www/paheko/users - - /etc/localtime:/etc/localtime:ro - - /etc/timezone:/etc/timezone:ro - networks: - - pahekoNet - - postfixNet - external_links: - - ${smtpServName}:${smtpHost}.${domain} - labels: - - "traefik.enable=true" - - "traefik.http.routers.${pahekoServName}.rule=Host(`https://kaz-paheko.kazkouil.fr`)" - - "traefik.docker.network=pahekotNet" -# - "traefik.frontend.rule=HostRegexp:{host:[a-zA-Z0-9_-]+-${pahekoHost}}.${domain}" -# - "traefik.http.routers.${pahekoServName}.rule=HostRegexp(`{host:[a-zA-Z0-9_-]+-${pahekoHost}}.${domain}`)" - -volumes: - assoUsers: - -networks: - pahekoNet: - external: true - name: pahekoNet - postfixNet: - external: true - name: postfixNet