From c6ac427ae13a02264acd892a38b292ef121cb655 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Fri, 24 Oct 2025 09:02:39 +0200 Subject: [PATCH] poprawki --- README.md | 35 ++++++++++++++++++++++++++++------- npm_install.py | 2 +- 2 files changed, 29 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index a42a389..6cee954 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,33 @@ systemctl status npm.service --no-pager --- +## Angie Statistics for a Specific vHost (NPM → Edit → Advanced) + +To enable Angie statistics for a specific vHost: +1. Go to **Hosts → Proxy Hosts → (Edit)**. +2. Open the **Advanced** tab. +3. Add a line with a **fixed** zone name (no variables): + ```bash + status_zone my-domain; + ``` +4. Save +Metrics will be visible at: +http://:82/console/#server_zones + + +## HTTP/3 Announcement (NPM → Edit → Advanced) + +# Advertise HTTP/3 support (Alt-Svc) — browsers will try h3 on subsequent connections + ```bash + listen 443 quic; + add_header Alt-Svc 'h3=":443"; ma=86400' always; + +# (Optional) Debug header for verification + ```bash + add_header X-H3-Advertised "1" always; + ``` +--- + ## Troubleshooting **1) Frontend build killed (SIGKILL) / high RAM usage** - If memory is tight, add swap: @@ -82,19 +109,13 @@ systemctl status npm.service --no-pager sudo fallocate -l 2G /swapfile && sudo chmod 600 /swapfile sudo mkswap /swapfile && sudo swapon /swapfile ``` - -**2) Permission denied: `/var/lib/logrotate/status`** -- Use `/usr/local/bin/logrotate-npm` (created by the installer), which keeps its own writable state file. - -**3) Config test fails on PID** -- The **nginx wrapper** ensures `nginx -t` writes test PID to `/tmp`, not to `/run/angie/angie.pid`. - --- ## Uninstall (manual) ```bash sudo systemctl disable --now npm.service angie.service || true sudo rm -f /usr/sbin/nginx /usr/local/bin/logrotate-npm || true +sudo rm -f /opt/npm || true ``` --- diff --git a/npm_install.py b/npm_install.py index 1a624b4..f1635f7 100644 --- a/npm_install.py +++ b/npm_install.py @@ -803,7 +803,7 @@ def print_summary(info, ipv6_enabled, dark_enabled, update_mode): print("Paths: /opt/npm (app), /data (data), /etc/angie (conf), /var/log/angie (logs)") print("Services: systemctl status angie.service / npm.service") print("Default login: Email: admin@example.com Password: changeme") - print("Test config: /usr/sbin/nginx -t (test PID: /tmp/angie-test.pid)") + print("Test config: /usr/sbin/angie -t") print("==========================================================\n") # ========== UPDATE-ONLY ==========