mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-08-04 13:47:37 +02:00
Merge 314b842109
into 08cf0def6e
This commit is contained in:
commit
466da87262
@ -89,6 +89,15 @@ python3 /usr/local/nginx/get_tls_settings.py | \
|
|||||||
tempio -template /usr/local/nginx/templates/listen.gotmpl \
|
tempio -template /usr/local/nginx/templates/listen.gotmpl \
|
||||||
-out /usr/local/nginx/conf/listen.conf
|
-out /usr/local/nginx/conf/listen.conf
|
||||||
|
|
||||||
|
# disable open_file_cache on NFS filesystems
|
||||||
|
# https://trac.nginx.org/nginx/ticket/478
|
||||||
|
NFS_CLIPS_FS=`findmnt -n -o FSTYPE --target /media/frigate/clips`
|
||||||
|
|
||||||
|
shopt -s nocasematch; if [[ "$NFS_CLIPS_FS" =~ ^nfs* ]]; then
|
||||||
|
echo "[INFO] NFS mount detected for /media/frigate/clips, disabling NGINX open_file_cache"
|
||||||
|
echo "open_file_cache off;" > /usr/local/nginx/conf/open_file_cache.conf
|
||||||
|
fi
|
||||||
|
|
||||||
# Replace the bash process with the NGINX process, redirecting stderr to stdout
|
# Replace the bash process with the NGINX process, redirecting stderr to stdout
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
exec \
|
exec \
|
||||||
|
@ -75,10 +75,7 @@ http {
|
|||||||
vod_hls_mpegts_interleave_frames on;
|
vod_hls_mpegts_interleave_frames on;
|
||||||
|
|
||||||
# file handle caching / aio
|
# file handle caching / aio
|
||||||
open_file_cache max=1000 inactive=5m;
|
include open_file_cache.conf;
|
||||||
open_file_cache_valid 2m;
|
|
||||||
open_file_cache_min_uses 1;
|
|
||||||
open_file_cache_errors on;
|
|
||||||
aio on;
|
aio on;
|
||||||
|
|
||||||
# file upload size
|
# file upload size
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
open_file_cache max=1000 inactive=5m;
|
||||||
|
open_file_cache_valid 2m;
|
||||||
|
open_file_cache_min_uses 1;
|
||||||
|
open_file_cache_errors on;
|
Loading…
Reference in New Issue
Block a user