[Unit] Description=Gestion copropriete Papa (Flask) After=network.target [Service] User=www-data Group=www-data WorkingDirectory=/var/www/stessy.org/copro_gestion Environment="SECRET_KEY=REMPLACER_PAR_UNE_CLE_ALEATOIRE" # Pas de chemin URL ici : défini dans Apache (X-Forwarded-Prefix). ExecStart=/var/www/stessy.org/copro_gestion/venv/bin/gunicorn -w 2 -b 127.0.0.1:8001 wsgi:application Restart=always [Install] WantedBy=multi-user.target # Adapter WorkingDirectory et chemins selon votre VPS. # sudo systemctl enable --now papa-copro