mirror of
https://github.com/YunoHost-Apps/funkwhale_ynh.git
synced 2024-09-03 18:36:24 +02:00
32 lines
No EOL
930 B
Desktop File
32 lines
No EOL
930 B
Desktop File
[Unit]
|
|
Description=Funkwhale (__APP__) application server
|
|
After=redis.service postgresql.service
|
|
PartOf=__APP__.target
|
|
|
|
[Service]
|
|
User=__APP__
|
|
Group=__APP__
|
|
WorkingDirectory=__FINALPATH__/code/api
|
|
EnvironmentFile=__FINALPATH__/code/config/.env
|
|
|
|
# https://www.freedesktop.org/software/systemd/man/systemd.exec.html#RuntimeDirectory=
|
|
LogsDirectory=__APP__
|
|
ExecStart=__FINALPATH__/code/virtualenv/bin/daphne -b ${FUNKWHALE_API_IP} -p ${FUNKWHALE_API_PORT} config.asgi:application --proxy-headers \
|
|
--loglevel INFO --logfile=/var/log/__APP__/server.log
|
|
|
|
NoNewPrivileges=true
|
|
PrivateDevices=true
|
|
PrivateTmp=true
|
|
ProtectHome=true
|
|
ProtectSystem=strict
|
|
ProtectControlGroups=yes
|
|
ProtectKernelModules=yes
|
|
ReadOnlyPaths=__FINALPATH__/code/config/.env __FINALPATH__/code/
|
|
ReadWritePaths=__FINALPATH__/media __FINALPATH__/import
|
|
|
|
StandardOutput=syslog
|
|
StandardError=syslog
|
|
SyslogIdentifier=__APP__-server
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |