Config serveur Axiom -- vm duniter-v1-data

J’ai encore des trucs à régler dans les scripts Python, mais ça devrait être des formalités. :slight_smile:

2 Likes

Dans ce cas quand tu as fais ça, je devrais juste recéer des vhosts pour ces 2 domaines avec ssl du coup, tu me dira.

C’est fait :

worldwotmap 10800 IN CNAME worldwotmap.axiom-team.fr.
wotmap 10800 IN CNAME wotmap.axiom-team.fr.

faut juste voir à quelle vitesse ça propage

C’est fait

root@axiom2-nginx:/home/poka# host wotmap.duniter.org
wotmap.duniter.org is an alias for wotmap.axiom-team.fr.
wotmap.axiom-team.fr has address 163.172.105.161
root@axiom2-nginx:/home/poka# n^C worldwotmap.axiom-team.fr 135 10040 ssl=1
root@axiom2-nginx:/home/poka# nvh wotmap.duniter.org 135 10030 ssl=1
Nous allons créer le domaine wotmap.duniter.org qui sera lié au port 10030 de la VM 135.
Confirmez-vous cette action ? (y ou n) : y
Génération du nouveau VirtualHost...
Configuration SSL du VHost...Création du certificat SSL pour wotmap.duniter.org...
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for wotmap.duniter.org

Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/wotmap.duniter.org/fullchain.pem
Key is saved at:         /etc/letsencrypt/live/wotmap.duniter.org/privkey.pem
This certificate expires on 2023-01-23.
These files will be updated when the certificate renews.

NEXT STEPS:
- The certificate will need to be renewed before it expires. Certbot can automatically renew the certificate in the background, but you may need to take steps to enable that functionality. See https://certbot.org/renewal-setup for instructions.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you like Certbot, please consider supporting our work by:
 * Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
 * Donating to EFF:                    https://eff.org/donate-le
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Le certificat de wotmap.duniter.org a bien été déployé
OK
Le domaine wotmap.duniter.org à bien été créé et configuré =)
root@axiom2-nginx:/home/poka# nvh worldwotmap.duniter.org 135 10040 ssl=1
Nous allons créer le domaine worldwotmap.duniter.org qui sera lié au port 10040 de la VM 135.
Confirmez-vous cette action ? (y ou n) : y
Génération du nouveau VirtualHost...
Configuration SSL du VHost...Création du certificat SSL pour worldwotmap.duniter.org...
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for worldwotmap.duniter.org

Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/worldwotmap.duniter.org/fullchain.pem
Key is saved at:         /etc/letsencrypt/live/worldwotmap.duniter.org/privkey.pem
This certificate expires on 2023-01-23.
These files will be updated when the certificate renews.

NEXT STEPS:
- The certificate will need to be renewed before it expires. Certbot can automatically renew the certificate in the background, but you may need to take steps to enable that functionality. See https://certbot.org/renewal-setup for instructions.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you like Certbot, please consider supporting our work by:
 * Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
 * Donating to EFF:                    https://eff.org/donate-le
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Le certificat de worldwotmap.duniter.org a bien été déployé
OK
Le domaine worldwotmap.duniter.org à bien été créé et configuré =)

worldwotmap.duniter.org

1 Like

C’est bon, tout est réglé et j’ai relancé Duniter. Je vais compléter le changelog.

2 Likes

C’est dans rsrc/duniter/serverAddress.txt (pour le serveur, on est d’accord ?).

1 Like
echo "Update worldwotmap..."
/usr/bin/python3 /home/axiom/worldwotmap/py/gencache.py -v -e /home/axiom/worldwotmap/www/data -c https://g1.data.presles.fr -r --spam

echo "Update wotmap..."
/usr/bin/python3 /home/axiom/wotmap/script/wot_json.py -v --ns --fa2rs -s --ow /home/axiom/wotmap/data/wot.json --os /home/axiom/wotmap/data/stats.json

@tuxmain tu sais combien de temps d’ésecution prennent ces commandes en moyennent ? Avec un time devant ?

Il faut juste que l’ensemble dex_migration/wotmap/wotwizard ne prenne pas plus de 14 minutes pour le cron check duniter ^^

1 Like

Ça prend environ 2 minutes, ça devrait aller.

parfait, entre 50 et 60 seconds pour dex_migration, on est large ^^

En fait, comme on a pris 10030 et 10040 pour wotmap et worldwotmap, je propose 10050 et 10051 pour wwServer et wwClient (à moins que @poka tu n’aies déjà réservé autre chose ?). Par contre je n’arrive pas à lancer les services systemd :

axiom@duniter-v1-data:~/wotwizard$ systemctl enable wwServer --user 
Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined (consider using --machine=<user>@.host --user to connect to bus of other user)

(les services sont dans ./config/systemd/user).

1 Like

Tu devrais pouvoir dans le container LXC, faut chercher la cause, sinon je regarderai.

$ systemctl --user enable wwServer.service

Devrait fonctionner.

Workaround: systemd - Cannot use `systemctl --user` due to "Failed to get D-bus connection: permission denied" - Server Fault

Vu que systemd ne fonctionne pas, j’ai lancé wwServer dans un screen, il écoute sur le port 10050.

Et wwClient aussi dans un screen, il écoute sur le port 10051.

Donc pour résumer

1 Like

Btw il y a docker sur cette vm ?

A votre demande, non. Car duniter v1 uniquement.

Si vous le voulez, dites le moi et il faut juste que je paramètre ce container en imbrication (une case à coché coté proxmox)
avant que vous puissiez faire marche docker

1 Like

Sinon on fait une autre vm destinée à Duniter v2.
Parce que je veux bien aussi faire des test pour avoir gdev.axiom-team.fr.
Mais il faut faire un autre sujet alors.

2 Likes