motioneye: Deploy motionEye camera software

The *motioneye* role installs motionEye on a Fedora machine using `pip`.
It configures Apache to proxy for motionEye for outside (HTTPS) access.

The official installation instructions and default configuration for
motionEye assume it will be running as root.  There is, however, no
specific reason for this, as it works just fine as an unprivileged user.
The only minor surprise is that the `conf_path` configuration setting
must be writable, as this is where motionEye places generated
configuration for `motion`.  This path does not, however, have to
include the `motioneye.conf` file itself, which can still be read-only.
This commit is contained in:
2020-10-03 11:25:52 -05:00
parent 1c575c4340
commit ef4e769ed2
9 changed files with 258 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
[Unit]
Description=motionEye Server
[Service]
User=motioneye
ExecStart=/usr/bin/meyectl startserver -c /etc/motioneye.conf
Restart=on-abort
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1 @@
d /run/motioneye 0755 motioneye motioneye -