ansible-roles/webapps/mastodon/templates/mastodon-streaming.service.j2
Mathieu Gauthier-Pilote 4c59374507
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
p10166 Rôle pour mastodon
2022-12-23 10:00:00 -05:00

22 lines
454 B
Django/Jinja

[Unit]
Description=mastodon-streaming
After=network.target
PartOf={{service}}.target
[Service]
Type=simple
User={{service}}
Group={{service}}
UMask=0027
WorkingDirectory=/home/{{service}}/mastodon/
Environment="NODE_ENV=production"
Environment="PORT={{ node_port | default('4000')}}"
Environment="STREAMING_CLUSTER_NUM=1"
ExecStart=/bin/bash -lc "node ./streaming"
TimeoutSec=15
Restart=always
SyslogIdentifier=%p
[Install]
WantedBy={{service}}.target