diff --git a/server_config/SYSTEMD_SERVICE_INSTALLATION.md b/server_config/SYSTEMD_SERVICE_INSTALLATION.md index 6fcbac3..bad9496 100644 --- a/server_config/SYSTEMD_SERVICE_INSTALLATION.md +++ b/server_config/SYSTEMD_SERVICE_INSTALLATION.md @@ -16,7 +16,9 @@ Ce document explique comment installer et activer le service systemd pour faire 3. Assurez-vous que l'utilisateur www-data a les permissions nécessaires sur le répertoire du projet : 4. Rechargez la configuration de systemd : ```bash +# attention à bien corriger le password POSTGRES_PASSWORD=blahblah dans le fichier du service pour mettre celui de l'utilisateur postgres que vous aurez créé sudo cp oedb-uwsgi.service /etc/systemd/system/ + sudo chmod 644 /etc/systemd/system/oedb-uwsgi.service sudo chown -R www-data:www-data /home/poule/encrypted/oedb-backend sudo systemctl daemon-reload diff --git a/server_config/oedb-uwsgi.service b/server_config/oedb-uwsgi.service index 5767102..e08a062 100644 --- a/server_config/oedb-uwsgi.service +++ b/server_config/oedb-uwsgi.service @@ -7,8 +7,7 @@ User=www-data Group=www-data WorkingDirectory=/home/poule/encrypted/oedb-backend Environment="DB_USER=cipherbliss" -Environment="POSTGRES_PASSWORD=tralalahihou" -ExecStartPre=/home/poule/encrypted/oedb-backend/setup_db.sh +Environment="POSTGRES_PASSWORD=blahblahblah" ExecStart=/home/poule/encrypted/oedb-backend/venv/bin/uwsgi \ --http :8080 \ --wsgi-file backend.py \