This commit is contained in:
Mateusz Gruszczyński
2025-10-24 09:02:39 +02:00
parent 6bb16ce710
commit c6ac427ae1
2 changed files with 29 additions and 8 deletions

View File

@@ -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://<NPM-IP>: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 ## Troubleshooting
**1) Frontend build killed (SIGKILL) / high RAM usage** **1) Frontend build killed (SIGKILL) / high RAM usage**
- If memory is tight, add swap: - 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 fallocate -l 2G /swapfile && sudo chmod 600 /swapfile
sudo mkswap /swapfile && sudo swapon /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) ## Uninstall (manual)
```bash ```bash
sudo systemctl disable --now npm.service angie.service || true sudo systemctl disable --now npm.service angie.service || true
sudo rm -f /usr/sbin/nginx /usr/local/bin/logrotate-npm || true sudo rm -f /usr/sbin/nginx /usr/local/bin/logrotate-npm || true
sudo rm -f /opt/npm || true
``` ```
--- ---

View File

@@ -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("Paths: /opt/npm (app), /data (data), /etc/angie (conf), /var/log/angie (logs)")
print("Services: systemctl status angie.service / npm.service") print("Services: systemctl status angie.service / npm.service")
print("Default login: Email: admin@example.com Password: changeme") 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") print("==========================================================\n")
# ========== UPDATE-ONLY ========== # ========== UPDATE-ONLY ==========