From 79b5a2f9ead17f57769990cc28ef18bd878a37c1 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Thu, 27 Jun 2024 07:43:15 -0600 Subject: [PATCH] Add docs for nginx bind mount --- docs/docs/configuration/advanced.md | 39 +++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/docs/docs/configuration/advanced.md b/docs/docs/configuration/advanced.md index 0e8e8d641..5dc4d4db9 100644 --- a/docs/docs/configuration/advanced.md +++ b/docs/docs/configuration/advanced.md @@ -106,7 +106,42 @@ Some labels have special handling and modifications can disable functionality. ::: -## Custom ffmpeg build +## Network Configuration + +Changes to Frigate's internal network configuration can be made by bind mounting nginx.conf into the container. For example: + +```yaml +services: + frigate: + container_name: frigate + ... + volumes: + ... + - /path/to/your/nginx.conf:/usr/local/nginx/conf/nginx.conf + +``` + +### Enabling IPv6 + +IPv6 is disabled by default, to enable IPv6 nginx.conf needs to be bind mounted as described above with the IPv6 enabled. For example: + +``` +server { + listen: 5000; +} +``` + +becomes + +``` +server { + listen [::]:5000 ipv6only=off; +} +``` + +## Custom Dependencies + +### Custom ffmpeg build Included with Frigate is a build of ffmpeg that works for the vast majority of users. However, there exists some hardware setups which have incompatibilities with the included build. In this case, a docker volume mapping can be used to overwrite the included ffmpeg build with an ffmpeg build that works for your specific hardware setup. @@ -118,7 +153,7 @@ To do this: NOTE: The folder that is mapped from the host needs to be the folder that contains `/bin`. So if the full structure is `/home/appdata/frigate/custom-ffmpeg/bin/ffmpeg` then `/home/appdata/frigate/custom-ffmpeg` needs to be mapped to `/usr/lib/btbn-ffmpeg`. -## Custom go2rtc version +### Custom go2rtc version Frigate currently includes go2rtc v1.9.4, there may be certain cases where you want to run a different version of go2rtc.