You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
backend/example.service

13 lines
482 B

[Unit]
Description=Gunicorn instance to serve Albatros/Thoth
After=network.target
[Service]
User=sammy
Group=www-data
WorkingDirectory=/home/albatros/albatrosfolder
Environment="PATH=/home/albatros/albatrosfolder/.venv/bin;JWT_SECRET_KEY=CHANGE_ME;JANUS_URL=http:/changeme export;JANUS_ADMIN_KEY=CHANGE_ME;MONGODB_URL=mongodb://server/db"
ExecStart=/home/albatros/albatrosfolder/.venv/bin --workers 3 --bind unix:myproject.sock -m 007 wsgi:app
[Install]
WantedBy=multi-user.target