1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/funkwhale_ynh.git synced 2024-09-03 18:36:24 +02:00
funkwhale_ynh/conf/funkwhale-server.service
Thomas 1dca005542
Testing (#233)
* Closes https://github.com/YunoHost-Apps/funkwhale_ynh/issues/206

* fix issue?

* Update funkwhale-server.service

* Update funkwhale-beat.service

* Update funkwhale-worker.service

* Update upgrade

* Fix nginx and issue https://github.com/YunoHost-Apps/funkwhale_ynh/issues/230

* Fix https://github.com/YunoHost-Apps/funkwhale_ynh/issues/230

* Auto-update README

* Revert loglevel to error because issue seems to be fixed

* Update upgrade

* apply Tagadda suggestions

* fix chown

* fix chown

* Update restore

* Update funkwhale-server.service

* fix logs

* Update upgrade

* Update restore

* Update remove

* Update ADMIN.md

* Update ADMIN_fr.md

* Update funkwhale-server.service

* fix logs

* fix logs

* fix service

* fix service?

* fix permissions

* fix permissions

* fix permissions

* test

* add logs

* Update funkwhale-server.service

* Update funkwhale-beat.service

* Update funkwhale-worker.service

* fix service

* Update funkwhale-server.service

* Update funkwhale-server.service

* Update funkwhale-server.service

* Update funkwhale-worker.service

---------

Co-authored-by: yunohost-bot <yunohost@yunohost.org>
2023-06-20 10:44:18 +02:00

36 lines
1.2 KiB
Desktop File

[Unit]
Description=__APP__ application server
After=redis.service postgresql.service
PartOf=__APP__.target
[Service]
User=__APP__
Group=__APP__
WorkingDirectory=__INSTALL_DIR__/api
EnvironmentFile=__INSTALL_DIR__/config/.env
Type=notify
KillMode=mixed
ExecStart=__INSTALL_DIR__/venv/bin/gunicorn \
config.asgi:application \
--workers ${FUNKWHALE_WEB_WORKERS} \
--worker-class uvicorn.workers.UvicornWorker \
--bind ${FUNKWHALE_API_IP}:${FUNKWHALE_API_PORT} \
--timeout 120
ExecReload=/bin/kill -s HUP $MAINPID
# Denying access to capabilities that should not be relevant for webapps
# Doc: https://man7.org/linux/man-pages/man7/capabilities.7.html
CapabilityBoundingSet=~CAP_RAWIO CAP_MKNOD
CapabilityBoundingSet=~CAP_AUDIT_CONTROL CAP_AUDIT_READ CAP_AUDIT_WRITE
CapabilityBoundingSet=~CAP_SYS_BOOT CAP_SYS_TIME CAP_SYS_MODULE CAP_SYS_PACCT
CapabilityBoundingSet=~CAP_LEASE CAP_LINUX_IMMUTABLE CAP_IPC_LOCK
CapabilityBoundingSet=~CAP_BLOCK_SUSPEND CAP_WAKE_ALARM
CapabilityBoundingSet=~CAP_SYS_TTY_CONFIG
CapabilityBoundingSet=~CAP_MAC_ADMIN CAP_MAC_OVERRIDE
CapabilityBoundingSet=~CAP_NET_ADMIN CAP_NET_BROADCAST CAP_NET_RAW
CapabilityBoundingSet=~CAP_SYS_ADMIN CAP_SYS_PTRACE CAP_SYSLOG
[Install]
WantedBy=multi-user.target