1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/navidrome_ynh.git synced 2024-09-03 19:46:30 +02:00
navidrome_ynh/conf/systemd.service
Éric Gaspar 67d16cd5c8
Testing (#98)
* preserve config file

* [autopatch] Add Common Platform Enumeration id to `manifest.json` (#80)

Co-authored-by: Yunohost-Bot <>

* Auto-update README

* Update manifest.json

* Update upgrade

* Update upgrade

* 0.48.0 (#82)

* 0.48.0

* Auto-update README

* Update manifest.json

* Auto-update README

* Update ss-desktop-player.png

* Update systemd.service

* Update install

* Update upgrade

* Update change_url

Co-authored-by: yunohost-bot <yunohost@yunohost.org>

* Disable the activity panel that hangs some browsers (#86)

* Testing (#84)

* preserve config file

* [autopatch] Add Common Platform Enumeration id to `manifest.json` (#80)

Co-authored-by: Yunohost-Bot <>

* Auto-update README

* Update manifest.json

* Update upgrade

* Update upgrade

* 0.48.0 (#82)

* 0.48.0

* Auto-update README

* Update manifest.json

* Auto-update README

* Update ss-desktop-player.png

* Update systemd.service

* Update install

* Update upgrade

* Update change_url

Co-authored-by: yunohost-bot <yunohost@yunohost.org>

Co-authored-by: YunoHost Bot <yunohost-bot@users.noreply.github.com>
Co-authored-by: yunohost-bot <yunohost@yunohost.org>

* Disable the activity panel that hangs some browsers

Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
Co-authored-by: YunoHost Bot <yunohost-bot@users.noreply.github.com>
Co-authored-by: yunohost-bot <yunohost@yunohost.org>

* Auto-update README

* Update manifest.json

* Auto-update README

* Auto-update README

* 0.49.0_

* Auto-update README

* Add enable sharing to config panel

* #85

* Update change_url

* 0.49.1

* Update manifest.json

* Auto-update README

* Update manifest.json

* Update manifest.json

* Update install

* Update upgrade

* Update upgrade

* Update manifest.json

* 0.49.2

* Auto-update README

* cleaning

* Auto-update README

* Auto-update README

* 0.49.3

* Auto-update README

* Version 2 (#97)

* v2

* v2

* v2

* v2

* Auto-update README

* v2

* Update upgrade

* Update upgrade

---------

Co-authored-by: yunohost-bot <yunohost@yunohost.org>

* Update navidrome.toml

* Update config_panel.toml

* Fix

* Update manifest.toml

* Update manifest.toml

* Auto-update README

* cleaning

* Auto-update README

---------

Co-authored-by: YunoHost Bot <yunohost-bot@users.noreply.github.com>
Co-authored-by: yunohost-bot <yunohost@yunohost.org>
Co-authored-by: selfhoster1312 <121760708+selfhoster1312@users.noreply.github.com>
2023-02-16 19:21:12 +01:00

48 lines
1.7 KiB
Desktop File

[Unit]
Description=Navidrome: Music Server and Streamer compatible with Subsonic/Airsonic
After=remote-fs.target network.target
AssertPathExists=__CONFIG_PATH__
[Service]
Type=simple
User=__APP__
Group=__APP__
WorkingDirectory=__CONFIG_PATH__/
ExecStart=__INSTALL_DIR__/__APP__ --configfile "__CONFIG_PATH__/navidrome.toml"
TimeoutStopSec=20
KillMode=process
Restart=on-failure
ReadWritePaths=__CONFIG_PATH__
# Sandboxing options to harden security
# Depending on specificities of your service/app, you may need to tweak these
# .. but this should be a good baseline
# Details for these options: https://www.freedesktop.org/software/systemd/man/systemd.exec.html
NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
RestrictNamespaces=yes
RestrictRealtime=yes
DevicePolicy=closed
ProtectSystem=full
ProtectControlGroups=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
LockPersonality=yes
SystemCallFilter=~@clock @debug @module @mount @obsolete @reboot @setuid @swap
# 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