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
- restart
systemctl restart jetforce
- log
journalctl -u jetforce -f
- test
telnet 127.0.0.1 1965