2020-09-14 11:18:39 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Simple streaming server
|
2020-09-14 11:56:09 +00:00
|
|
|
After=syslog.target
|
2020-09-14 11:18:39 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=www-data
|
|
|
|
WorkingDirectory=/var/local/ghostream
|
2020-09-14 12:28:37 +00:00
|
|
|
Environment=FLASK_CONFIG="production"
|
|
|
|
Environment=LDAP_URI="ldap://127.0.0.1:389"
|
|
|
|
Environment=LDAP_USER_DN="cn=Utilisateurs,dc=crans,dc=org"
|
|
|
|
Environment=SITE_NAME="Crans Stream"
|
|
|
|
Environment=SITE_HOSTNAME="stream.crans.org"
|
|
|
|
Environment=FAVICON="https://www.crans.org/images/favicon.ico"
|
2020-09-14 13:58:35 +00:00
|
|
|
EnvironmentFile=-/etc/default/ghostream
|
2020-09-14 11:56:09 +00:00
|
|
|
ExecStart=/usr/bin/uwsgi --http-socket 127.0.0.1:8080 --master --plugin python3 --module ghostream:app --static-map /static=/var/local/ghostream/ghostream/static
|
|
|
|
Restart=on-failure
|
|
|
|
KillSignal=SIGQUIT
|
|
|
|
Type=notify
|
|
|
|
StandardError=syslog
|
|
|
|
NotifyAccess=all
|
2020-09-14 11:18:39 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|