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.
14 lines
268 B
Django/Jinja
14 lines
268 B
Django/Jinja
# vim: set ft=apache :
|
|
|
|
RewriteEngine On
|
|
RewriteCond %{HTTPS} !on
|
|
RewriteRule /.* https://%{SERVER_NAME}$0 [R=301,L]
|
|
|
|
ProxyRequests Off
|
|
ProxyPass / http://localhost:8765/ nocanon
|
|
ProxyPassReverse / http://localhost:8657/
|
|
|
|
<Location />
|
|
Require all granted
|
|
</Location>
|