mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2025-07-01 06:41:15 +02:00
Install Systemd service unit with debian package
This commit is contained in:
23
debian/ghostream.service
vendored
Normal file
23
debian/ghostream.service
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
[Unit]
|
||||
Description=Simple streaming server
|
||||
After=syslog.target
|
||||
|
||||
[Service]
|
||||
User=www-data
|
||||
WorkingDirectory=/var/local/ghostream
|
||||
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"
|
||||
EnvironmentFile=-/etc/default/ghostream
|
||||
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
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user