Fix BirdNET-PiPy nginx routing

This commit is contained in:
Alexandre
2026-01-29 16:07:08 +01:00
parent 7905b2df7b
commit 5c10f19d18
4 changed files with 104 additions and 5 deletions

View File

@@ -84,9 +84,6 @@ RUN python3 -m venv "${VIRTUAL_ENV}"
ENV PATH="${VIRTUAL_ENV}/bin:${PATH}"
RUN pip install --no-cache-dir --extra-index-url https://www.piwheels.org/simple -r /app/requirements.txt
# Add frontend nginx
ADD "https://raw.githubusercontent.com/Suncuss/BirdNET-PiPy/refs/heads/main/frontend/nginx.conf" "/etc/nginx/servers/nginx.conf"
# Patch service hostnames for single-container usage
RUN sed -i \
-e "s/API_HOST = 'api'/API_HOST = '127.0.0.1'/" \