From 9725c5608ba5f3f49c3f44cb16f6422404eba192 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 4 Mar 2025 18:22:22 +0100 Subject: [PATCH] Fix Stats --- .../rootfs/etc/nginx/servers/ingress.conf | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/birdnet-pi/rootfs/etc/nginx/servers/ingress.conf b/birdnet-pi/rootfs/etc/nginx/servers/ingress.conf index 3fd68901e..8e252e7b1 100644 --- a/birdnet-pi/rootfs/etc/nginx/servers/ingress.conf +++ b/birdnet-pi/rootfs/etc/nginx/servers/ingress.conf @@ -6,21 +6,6 @@ proxy_buffering off; auth_basic_user_file /home/pi/.htpasswd; - location /log { - # Proxy pass - proxy_pass http://localhost:8082; - } - - location /stats { - # Proxy pass - proxy_pass http://localhost:8082; - } - - location /terminal { - # Proxy pass - proxy_pass http://localhost:8082; - } - location / { # Proxy pass proxy_pass http://localhost:8082; @@ -31,12 +16,16 @@ proxy_set_header Connection "upgrade"; # Correct base_url + absolute_redirect off; proxy_set_header Accept-Encoding ""; sub_filter_once off; sub_filter_types *; sub_filter /spectrogram %%ingress_entry%%/spectrogram; sub_filter /By_Date/ %%ingress_entry%%/By_Date/; sub_filter /Charts/ %%ingress_entry%%/Charts/; + sub_filter /stats/ /api/hassio_ingress/S04EbsgJIYd9FheFs7F8voUrUc6s0hCM5Eg3xxRecdI/stats/; + sub_filter /log/ /api/hassio_ingress/S04EbsgJIYd9FheFs7F8voUrUc6s0hCM5Eg3xxRecdI/log/; + sub_filter /terminal/ /api/hassio_ingress/S04EbsgJIYd9FheFs7F8voUrUc6s0hCM5Eg3xxRecdI/terminal/; sub_filter /todays %%ingress_entry%%/todays; sub_filter href=\"/ href=\"%%ingress_entry%%/; sub_filter src=\"/ src=\"%%ingress_entry%%/;