mirror of
https://github.com/YunoHost-Apps/motioneye_ynh.git
synced 2024-09-03 19:46:09 +02:00
* fixed config destination typo * $final_path not bound, attepting "__APP__" * test: hard Coded directory * changed install and data dir references * I thought I had replaced etc/ with /etc * added python3-venv to dependencies * moved asset to install * undo source removal * debug: list all files in install dir * use local downloaded dev.tar.gz * update source reference to specific commit + no extract * updated manifest for fixes and info + systemd correct directory * Auto-update README * Update manifest.toml (Fixed CPE) Co-authored-by: Tagada <36127788+Tagadda@users.noreply.github.com> * Version to date ver Co-authored-by: Tagada <36127788+Tagadda@users.noreply.github.com> * Auto-update README * install: changed permissions * 660->664 * install: 664->666 chown commented * chown+777 (this does not feel right) * following motionEye's base (664 + motion:motion) * Auto-update README * moved permissions * add motion to dependencies * permission tests continue * 777 again * retry * reordered folder making * Linter (#12) by ericgaspar * linter * Auto-update README * Update LICENSE * Update manifest.toml * Auto-update README * Update manifest.toml * cleaning --------- Co-authored-by: yunohost-bot <yunohost@yunohost.org> * Auto-update README * v0.43.1b1 download test * fixed miss-quote * Auto-update README * Update manifest.toml * clean up? * __APP__ -> $app * venv, ip fix and ram fix * run directory * test install dir run * logs in app dir (should change later) * force-create directories (shouldn't these be made?) * updated folders, upgrade, restore and install usage * corrected directory references * what if we cant use /path? * fixed description * Auto-update README * minimized screenshot to be less than 512k --------- Co-authored-by: yunohost-bot <yunohost@yunohost.org> Co-authored-by: Tagada <36127788+Tagadda@users.noreply.github.com> Co-authored-by: eric_G <46165813+ericgaspar@users.noreply.github.com>
50 lines
1.8 KiB
Desktop File
50 lines
1.8 KiB
Desktop File
[Unit]
|
|
Description=motionEye: Web frontend for the motion daemon
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=__APP__
|
|
Group=__APP__
|
|
WorkingDirectory=__INSTALL_DIR__/venv
|
|
ExecStart=__INSTALL_DIR__/venv/bin/meyectl startserver -c __INSTALL_DIR__/motioneye.conf
|
|
StandardOutput=append:__INSTALL_DIR__/__APP__.log
|
|
StandardError=inherit
|
|
Restart=on-abort
|
|
|
|
# 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 AF_NETLINK
|
|
RestrictNamespaces=yes
|
|
RestrictRealtime=yes
|
|
DevicePolicy=closed
|
|
ProtectClock=yes
|
|
ProtectHostname=yes
|
|
ProtectProc=invisible
|
|
ProtectSystem=full
|
|
ProtectControlGroups=yes
|
|
ProtectKernelModules=yes
|
|
ProtectKernelTunables=yes
|
|
LockPersonality=yes
|
|
SystemCallArchitectures=native
|
|
SystemCallFilter=~@clock @debug @module @mount @obsolete @reboot @setuid @swap @cpu-emulation @privileged
|
|
|
|
# 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
|