Skip to content
Discussion options

You must be logged in to vote

created a workaround that creates a custom docker image by patching existing nginx.conf

FROM ghcr.io/blakeblackshear/frigate:stable-tensorrt

COPY ./script.sh /script.sh
RUN chmod +x /script.sh && /script.sh /usr/local/nginx/conf/nginx.conf && rm /script.sh
#!/bin/bash

CONFIG_FILE="$1"

if [[ ! -f "$CONFIG_FILE" ]]; then
    echo "File not found: $CONFIG_FILE"
    exit 1
fi

# Insert 'access_log off;' after the first 'http {' line
sed -i '/http\s*{/a \
    access_log off;' "$CONFIG_FILE"

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by minorai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant