poprawki
This commit is contained in:
35
README.md
35
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://<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
|
||||
**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
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
@@ -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 ==========
|
||||
|
||||
Reference in New Issue
Block a user