Fix Stats

This commit is contained in:
Alexandre
2025-03-04 18:22:22 +01:00
committed by GitHub
parent dcb2749142
commit 9725c5608b

View File

@@ -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%%/;