Go to file
Adrien Bourmault 733b010e2d Actualiser README.md 2024-06-20 18:12:42 +02:00
LICENSE Initial commit 2024-06-19 20:46:55 +02:00
README.md Actualiser README.md 2024-06-20 18:12:42 +02:00
statping.json Téléverser les fichiers vers "/" 2024-06-20 14:15:02 +02:00

README.md

Status - page de statut de l'infrastructure de Libre en Communs

Basé sur le logiciel statping-ng

Installation

Instructions : https://statping-ng.github.io/install.html

Installation du binaire

En root :

curl -o- -L https://raw.githubusercontent.com/statping-ng/statping-ng/stable/install.sh | bash

Configuration

Créer l'utilisateur postgresql :

apt install postgresql
sudo -u postgres createuser -P statping
sudo -u postgres createdb -O statping statping

Création du service systemd dans /etc/systemd/system/statping-ng.service :

[Unit]
Description=Statping Server
After=network.target
After=systemd-user-sessions.service
After=network-online.target

[Service]
Type=simple
Restart=always
ExecStart=/usr/local/bin/statping
WorkingDirectory=/usr/local/bin

[Install]
WantedBy=multi-user.target

Recharger systemd :

systemctl daemon-reload
systemctl enable statping-ng.service
systemctl start statping-ng

Personnalisation

Installer SASS :

apt install ruby-sass -y

Changer le CSS via l'interface https://status.libre-en-communs.org/dashboard/settings.

Variables :

/*    Index Page      */
$background-color: #EAEAEA;
$container-color: #fefff9;
$text-color: #2d3842;
$max-width: 1012px;
$title-color: #00adff;
$description-color: #ef998f;
$subtitle-color: #747474;
$mobile-card-shadow: 2px 3px 10px #b7b7b7;

$group-list-background: #FFFBEE;
$group-list-title: #00adff;
$navbar-color: #2d3842;
$navbar-background: #ffffff;
$input-background: #fdfdfd;
$input-color: #4e4e4e;
$input-border: 1px solid #c9c9c9;
$day-success-background: #e9e9e9;
$day-error-background: #d50a0a;

/*    Status Container   */
$card-background: #FFFBEE;
$card-border: 1px solid rgba(76, 76, 76, 0.12);
$card-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.08);
$service-title: #00adff;
$service-title-size: 1.8rem;
$service-stats-color: #4f4f4f;
$service-description-color: #fff;
$service-stats-size: 2.3rem;
$service-card-height: 480px;

/*    Button Colors      */
$success-color: green;
$danger-color: #d50a0a;
$primary-color: #51829B;

/*   Footer Settings   */
$footer-text-color: #b0b0b0;
$nav-tab-color: #ef998f;
$footer-display: block;

/*   Global Settings */
$global-border-radius: 0.2rem;

/*   Mobile Settings   */
$sm-background-color: #fcfcfc;
$sm-border-radius: 0rem;

/*   Mobile Service Container   */
$sm-service-background: #ffffff;
$sm-padding: 0;
$sm-service-stats-size: 1.5rem;

Services

Importer depuis https://status.libre-en-communs.org/dashboard/settings le fichier statping.json.