Refactor motion config
This commit is contained in:
+9
-9
@@ -1,7 +1,7 @@
|
||||
# GENERAL
|
||||
daemon off
|
||||
target_dir /var/lib/motion
|
||||
log_file /var/log/motion/motion.log
|
||||
target_dir ${MOTION_DIR}
|
||||
log_file ${MOTION_LOG_FILE}
|
||||
|
||||
# IMAGE PROCESSING
|
||||
despeckle_filter EedDl
|
||||
@@ -33,15 +33,15 @@ timelapse_filename /timelapse/%Y-%m-%d-%H-%M-%S
|
||||
# WEBCONTROL
|
||||
webcontrol_auth_method 2
|
||||
webcontrol_authentication ${MOTION_USER}:${MOTION_PASSWORD}
|
||||
webcontrol_port 8080
|
||||
webcontrol_port ${WEBCONTROL_PORT}
|
||||
webcontrol_localhost off
|
||||
webcontrol_cert /etc/letsencrypt/live/${DOMAIN}/fullchain.pem
|
||||
webcontrol_key /etc/letsencrypt/live/${DOMAIN}/privkey.pem
|
||||
webcontrol_cert ${TLS_CERT}
|
||||
webcontrol_key ${TLS_KEY}
|
||||
webcontrol_parms 0
|
||||
webcontrol_tls on
|
||||
|
||||
# LIVE STREAM
|
||||
stream_port 3000
|
||||
stream_port ${STREAM_PORT}
|
||||
stream_localhost off
|
||||
stream_quality 25
|
||||
stream_motion on
|
||||
@@ -52,9 +52,9 @@ stream_preview_method 0
|
||||
stream_tls on
|
||||
|
||||
# SCRIPTS
|
||||
on_motion_detected /var/lib/motion/alert
|
||||
on_movie_end /var/lib/motion/sync %f
|
||||
on_picture_save /var/lib/motion/notify %f
|
||||
on_motion_detected ${MOTION_DIR}/alert
|
||||
on_movie_end ${MOTION_DIR}/sync %f
|
||||
on_picture_save ${MOTION_DIR}/notify %f
|
||||
|
||||
# CAMERA
|
||||
camera_name ${CAMERA_NAME}
|
||||
|
||||
Reference in New Issue
Block a user