diff --git a/conf/motioneye.conf b/conf/motioneye.conf index a3131b4..d5ed01f 100644 --- a/conf/motioneye.conf +++ b/conf/motioneye.conf @@ -5,10 +5,10 @@ conf_path /etc/motioneye run_path /run/motioneye # path to the directory where log files go (must be writable by motionEye) -log_path /var/log/motioneye +log_path __DATA_DIR__/logs # default output path for media files (must be writable by motionEye) -media_path /var/lib/motioneye +media_path __DATA_DIR__/media # the log level (use quiet, error, warning, info or debug) log_level info diff --git a/conf/nginx.conf b/conf/nginx.conf index fa9073f..2f5e3ff 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -4,7 +4,7 @@ location __PATH__/ { # Path to source alias __INSTALL_DIR__/; proxy_pass http://localhost:8765; - proxy_set_header Host $http_host; + proxy_set_header Host $host; more_set_headers "X-Frame-Options: ALLOWALL"; # Include SSOWAT user panel. diff --git a/scripts/install b/scripts/install index f90537e..6768f41 100755 --- a/scripts/install +++ b/scripts/install @@ -134,7 +134,7 @@ ynh_script_progression --message="Adding a configuration file..." --weight=1 mkdir -p /etc/motioneye mkdir -p /var/lib/motioneye -ynh_add_config --template="../conf/motioneye.conf" --destination="/etc/motioneye/motioneye.conf" +ynh_add_config --template="../conf/motioneye.conf" --destination="etc/motioneye/motioneye.conf" # FIXME: this should be handled by the core in the future # You may need to use chmod 600 instead of 400, @@ -169,7 +169,7 @@ chown $app:$app "/var/lib/motioneye" ynh_script_progression --message="Installing python dependencies..." --weight=1 -pushd /var/www/motionEye +pushd $install_dir python3 -m venv venv venv/bin/pip install --upgrade pip venv/bin/pip install dev.tar.gz