From e7e64c84d7758424e4ac3750beaeafc434009562 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 29 Jan 2026 15:34:09 +0100 Subject: [PATCH] update --- birdnet-pipy/config.yaml | 2 +- .../rootfs/etc/nginx/servers/nginx.conf | 68 ------------------- 2 files changed, 1 insertion(+), 69 deletions(-) delete mode 100644 birdnet-pipy/rootfs/etc/nginx/servers/nginx.conf diff --git a/birdnet-pipy/config.yaml b/birdnet-pipy/config.yaml index 160a2ce15..599d50fa9 100644 --- a/birdnet-pipy/config.yaml +++ b/birdnet-pipy/config.yaml @@ -98,4 +98,4 @@ schema: ssl: bool? slug: birdnet-pipy url: https://github.com/alexbelgium/hassio-addons/tree/master/birdnet-pipy -version: '0.4' +version: "0.5" diff --git a/birdnet-pipy/rootfs/etc/nginx/servers/nginx.conf b/birdnet-pipy/rootfs/etc/nginx/servers/nginx.conf deleted file mode 100644 index 8889cfb4a..000000000 --- a/birdnet-pipy/rootfs/etc/nginx/servers/nginx.conf +++ /dev/null @@ -1,68 +0,0 @@ -server { - listen 8099; - - root /usr/share/nginx/html; - index index.html; - - include /etc/nginx/includes/server_params.conf; - include /etc/nginx/includes/proxy_params.conf; - - client_max_body_size 0; - - gzip on; - gzip_vary on; - gzip_min_length 1024; - gzip_types text/plain text/css text/xml text/javascript application/javascript application/xml+rss application/json; - - add_header X-Frame-Options "SAMEORIGIN" always; - add_header X-Content-Type-Options "nosniff" always; - - location ^~ /api/ { - proxy_pass http://127.0.0.1:5002; - } - - location = /internal/auth { - internal; - proxy_pass http://127.0.0.1:5002/api/auth/verify; - proxy_pass_request_body off; - proxy_set_header Content-Length ""; - proxy_set_header X-Original-URI $request_uri; - proxy_set_header Cookie $http_cookie; - } - - location @stream_unauthorized { - default_type application/json; - return 401 '{"error": "Authentication required"}'; - } - - location ^~ /stream/ { - auth_request /internal/auth; - error_page 401 = @stream_unauthorized; - - proxy_pass http://127.0.0.1:8888/; - proxy_buffering off; - proxy_read_timeout 3600s; - proxy_send_timeout 3600s; - } - - location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ { - expires 1y; - add_header Cache-Control "public, immutable"; - try_files $uri =404; - } - - location /socket.io/ { - proxy_pass http://127.0.0.1:5002/socket.io/; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - proxy_cache_bypass $http_upgrade; - } - - location / { - try_files $uri $uri/ /index.html; - } - - error_page 404 /index.html; - error_page 500 502 503 504 /index.html; -}