Files
no-secrets-athq-ansible/templates/waitress-systemd-unit.j2
2023-01-08 23:01:42 +01:00

15 lines
299 B
Django/Jinja

[Unit]
Description={{ item.name }} on {{ item.port }} at {{ item.path }}
After=network.target
[Service]
WorkingDirectory={{ item.path }}
Type=simple
User=www-data
ExecStart=/usr/bin/waitress-serve --host 0.0.0.0 --port {{ item.port }} --call 'app:createApp'
[Install]
WantedBy=multi-user.target