20/02/2021

Gemini

Installation d’un serveur gemini

jetforce

python3

apt install python3
apt install python3-pip
update-alternatives --install /usr/bin/python python /usr/bin/python3 10
apt install python3-distutils

Server

git clone https://github.com/michael-lazar/jetforce
cd jetforce/
python setup.py install
mkdir /opt/jetforce
pip install virtualenv
python3 -m virtualenv /opt/jetforce/venv
source /opt/jetforce/venv/bin/activate
pip install jetforce

Génération des clefs (optionnal)

openssl req -newkey rsa:2048 -nodes -keyout {hostname}.key \
    -nodes -x509 -out {hostname}.crt -subj "/CN={hostname}"

Configuration

La configuration sera dans un fichier : /etc/systemd/system/jetforce.service

[Unit]
Description=Jetforce Server

[Service]
Type=simple
Restart=always
RestartSec=5
Environment="PYTHONUNBUFFERED=1"
ExecStart=/usr/local/bin/jetforce \
    --host 0.0.0.0 \
    --port 1965 \
    --hostname gemini \
    --dir /var/gemini/Blog/public \
    --tls-certfile /etc/letsencrypt/live/mozz.us/fullchain.pem \
    --tls-keyfile /etc/letsencrypt/live/mozz.us/privkey.pem \
    --tls-cafile /etc/pki/tls/jetforce_client/ca.cer

Les parties –tls sont optionnelle

systemctl restart jetforce

journalctl -u jetforce -f

telnet 127.0.0.1 1965

Client gemini

https://git.skyjake.fi/skyjake/lagrange/releases

Configuration de votre site hugo