Outils pour utilisateurs

Outils du site


admin:services:kanban.chapril.org

Ceci est une ancienne révision du document !


Service Kanban.chapril.org

Introduction

Ce service est basé sur kanboard.
Site principal : https://kanboard.org/
Sources : https://github.com/kanboard/kanboard

Installation des pré-requis

apt update
apt install -y apache2 libapache2-mod-php7.3 php7.3-cli php7.3-mbstring \
    php7.3-opcache php7.3-json php7.3-mysql \
    php7.3-gd php7.3-xml
systemctl enable apache2 mariadb

Pour les plugins :

apt install -y php-zip 
Si ce n'est pas installé kanboard affichera : Votre instance de Kanboard n'est pas configurée pour installer des extensions depuis l'interface utilisateur.

Création des dossiers

mkdir -p /var/www/kanban.chapril.org
mkdir -p /var/log/cron/
mkdir -p /var/log/apache2/kanban.chapril.org/

Création des liens

ln -s /etc/cron.d/kanbanchaprilorg /srv/kanban.chapril.org/kanbanchaprilorg.cron
ln -s /var/www/kanban.chapril.org /srv/kanban.chapril.org/www

Configuration apache2

cat > /etc/apache2/sites-available/kanban.chapril.org.conf <<EOF
<VirtualHost *:80>
             ServerName kanban.chapril.org
             ServerAdmin kanban-support@chapril.org

             ErrorLog ${APACHE_LOG_DIR}/kanban.chapril.org/kanban.chapril.org-error.log
             CustomLog ${APACHE_LOG_DIR}/kanban.chapril.org/kanban.chapril.org-access.log combined-proxy

             DocumentRoot /var/www/kanban.chapril.org/

             php_admin_value open_basedir "/var/www/kanban.chapril.org/"

             <Directory "/var/www/kanban.chapril.org/">
                 AllowOverride All
             </Directory>
</VirtualHost>
EOF

Création du fichier cron

La création du fichier cron est tiré de : https://docs.kanboard.org/en/latest/admin_guide/cronjob.html

cat > /etc/cron.d/kanbanchaprilorg <<EOF
0 5 * * * cd /var/www/kanban.chapril.org/ && ./cli cronjob >>/var/log/cron/kanbanchaprilorg.log 2>&1
EOF

Création du home directory

mkdir -p /srv/kanban.chapril.org/tools
cd /srv/kanban.chapril.org/tools
git init 
cd -
touch /etc/cron.d/kanbanchaprilorg

Installation

Installation du service

version=1.2.13
wget https://github.com/kanboard/kanboard/archive/v$version.tar.gz
tar xzvf v$version.tar.gz -C /var/www/kanban.chapril.org/ --strip-components=1
chown -R www-data:www-data /var/www/kanban.chapril.org/data
cp /var/www/kanban.chapril.org/config.default.php /var/www/kanban.chapril.org/config.php 

Base de données

cat > /srv/kanban.chapril.org/tools/create_database.sql <<EOF
CREATE USER 'kanbanchaprilorg_dbadmin'@'localhost' IDENTIFIED BY 'password';
CREATE DATABASE IF NOT EXISTS kanban_chapril_org_db DEFAULT CHARACTER SET utf8mb4 COLLATE 'utf8mb4_unicode_ci';
GRANT ALL privileges ON 'kanbanchaprilorg'.localhost TO 'kanbanchaprilorg_dbadmin'@localhost;
FLUSH PRIVILEGES;
EOF
mysql < /srv/kanban.chapril.org/tools/create_database.sql

Configuration

Éditer le fichier de conf :

nano /var/www/kanban.chapril.org/config.php 

afin d'avoir :

// Enable/Disable plugin installer (Disabled by default for security reasons)
// There is no code review or any approval process to submit a plugin.
// This is up to the Kanboard instance owner to validate if a plugin is legit.
define('PLUGIN_INSTALLER', true);
// Enable/disable email configuration from the user interface
define('MAIL_CONFIGURATION', true);
// E-mail address used for the "From" header (notifications)
define('MAIL_FROM', 'kanban-notifications@chapril.org');
// Mail transport to use: "smtp", "sendmail" or "mail" (PHP mail function)
define('MAIL_TRANSPORT', 'smtp');
// SMTP configuration to use when the "smtp" transport is chosen
define('MAIL_SMTP_HOSTNAME', 'localhost');
define('MAIL_SMTP_PORT', 25);
define('MAIL_SMTP_USERNAME', '');
define('MAIL_SMTP_PASSWORD', '');
define('MAIL_SMTP_ENCRYPTION', null); // Valid values are "null", "ssl" or "tls"
// Sendmail command to use when the transport is "sendmail"
define('MAIL_SENDMAIL_COMMAND', '/usr/sbin/sendmail -bs');
// Run automatically database migrations
// If set to false, you will have to run manually the SQL migrations from the CLI during the next Kanboard upgrade
// Do not run the migrations from multiple processes at the same time (example: web page + background worker)
define('DB_RUN_MIGRATIONS', true);
// Database driver: sqlite, mysql or postgres (sqlite by default)
define('DB_DRIVER', 'mysql');
// Mysql/Postgres username
define('DB_USERNAME', 'kanbanchaprilorg_dbadmin');
// Mysql/Postgres password
define('DB_PASSWORD', 'password');
// Mysql/Postgres database name
define('DB_NAME', 'kanban_chapril_org_db');
// Mysql/Postgres custom port (null = default port)
define('DB_PORT', null);
// Mysql SSL key
define('DB_SSL_KEY', null);
// Mysql SSL certificate
define('DB_SSL_CERT', null);
// Mysql SSL CA
define('DB_SSL_CA', null);

Activation de la configuration apache

ad2ensite kanban.chapril.org.conf
services apache2 restart

Configuration de l'interface une fois connecté en admin

  • Settings > Application settings

Dans “Application URL” mettre : https://kanban.chapril.org/
Mettre la langue en Français.
Vérifier que Enable “forget password” est coché.
Changer Timezone pour “Europe/Paris”.
Cliquer sur save.

  • Dans Préférences > Taux de change des devices (lorsque la langue est changée en français) :

cliquer sur “Changer la monnaie de référence”.
choisir EUR pour l'euro.

Installation des différents plugins

  • Auto Email Extended Actions : Envoyer automatiquement une tâche par e-mail au créateur ou à l'utilisateur assigné à la tâche.
  • DueDate : Forcer le tri automatique des colonnes en fonction de la date.
  • ProjectInvitation : Inviter un nouvel utilisateur au projet actuel.
  • TaskAssignCategory : Automatiquement assigner une catégorie quand une tâche est déplacée dans une colonne spécifique.
  • Self-Registration : Autoriser les gens à s'inscrire eux-même à Kanboard.
  • Gantt : Création du diagramme de Gantt.

Configuration Gantt :

Aller dans Préférences -> Paramètres du diagramme de Gantt 
Sélectionner "trier les tâches par date". 

* Auto Subtask Creation : Création de sous-tâche.\\
  • TimeMachine : Plugin pour faire des sauvegardes.
  • UpdateNotifier : Pour connaître la liste des mise à jour des plugins installés.
  • TaskAssignDateToUndated : Ajouter automatiquement une date d'échéance aux tâches non datées pour les forcer à apparaître sur le calendrier.
  • Group_assign : Assignation de groupe aux tâches.
  • KanboardSearchPlugin : Recherche avancée en texte intégral dans tous les projets.
  • Jabber : Recevoir des notifications sur Jabber.

Configuration Jabber :

Aller dans Préférences -> Intégrations 
Rentrer le nom du server XMPP, le nom de domaine de Jabber et le pseudo Jabber pour le kanboard. 

* Comment Only Restrictions for Project Viewers : Ajout de la possibilité de commenter pour les spectateurs du projet.\\
admin/services/kanban.chapril.org.1609628556.txt.gz · Dernière modification : 2021/01/02 23:02 de eperez