Dépôt d'outils pour le service mobilizon.chapril.org. https://mobilizon.chapril.org
Go to file
2023-02-25 17:54:33 +01:00
build feat: Makefile to build Mobilizon release for Chapril 2023-02-25 17:54:33 +01:00
monitoring up script without temp file 2021-08-19 16:13:59 +02:00
rapport_activite up script without temp file 2021-08-19 16:13:59 +02:00
upgrade up script without temp file 2021-08-19 16:13:59 +02:00
.gitignore Added license file. 2020-12-31 16:18:51 +01:00
LICENSE Added license file. 2020-12-31 16:18:51 +01:00
README.md feat: Makefile to build Mobilizon release for Chapril 2023-02-25 17:54:33 +01:00

Mobilizon Chapril Tools

Build

Le dossier build contient un Makefile permettant de construire la version Chapril de Mobilizon.

# Dans le dossier build
cd build

# Affichez le manuel d'utilisation de ce Makefile
make help

Monitoring

Surveiller les signes de vie du site depuis Icinga. https://icinga.chapril.org

Rapport d'activité

Générer un rapport incluant des statistiques à propos de l'utilisation du site et le publier dans un ticket Redmine de Agir.chapril.org

format des logs Nginx

nginx shows logs like this: --------------------- error log format: --------------------- 2020/11/19 2020/11/19 20:31:05 [error] 1720#1720: *40 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.93, server: mobilizon.chapril.org, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:4000/", host: "mobilizon.chapril.org" --------------------- access log, format : --------------------- 26/Nov/2020 192.168.1.93 - - [26/Nov/2020:18:06:05 +0100] "GET / HTTP/1.1" 200 2731 "-" "check_http/v2.2 (monitoring-plugins 2.2)" 7d01:4f8:14b:c41::12 - - [26/Nov/2020:18:07:06 +0100] "POST /api/ HTTP/1.1" 200 238 "-" "curl/7.64.0"

Statistiques

obtention des statistiques publiques de l'instance par une requête GraphQL à l'url https://mobilizon.chapril.org/api/ dont le corps est:

{
      statistics {
          numberOfUsers
          numberOfEvents
          numberOfLocalEvents
          numberOfComments
          numberOfLocalComments
          numberOfGroups
          numberOfLocalGroups
          numberOfInstanceFollowers
          numberOfInstanceFollowings
        }
}

exemple de réponse:

{
    "data": {
        "statistics": {
            "numberOfComments": 9,
            "numberOfEvents": 45,
            "numberOfGroups": 7,
            "numberOfInstanceFollowers": 0,
            "numberOfInstanceFollowings": 1,
            "numberOfLocalComments": 0,
            "numberOfLocalEvents": 0,
            "numberOfLocalGroups": 0,
            "numberOfUsers": 1
        }
    }
}

Détail des paramètres à demander sur la doc: https://framagit.org/framasoft/mobilizon/-/blob/master/js/schema.graphql

On peut tester des requêtes sur cette sandbox https://mobilizon.fr/graphiql

LICENSE

The content of this repository is released under the GNU AGPL3+.