Документация и UX установки: полный production-fix по fix32
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
# Production example (reference)
|
||||
|
||||
Этот пример фиксирует эталонный production-state после успешной установки и preflight. Значения обезличены и предназначены как reference для smoke-проверки.
|
||||
|
||||
```text
|
||||
SSH:
|
||||
host: <server-ip>
|
||||
port: 2323
|
||||
user: root
|
||||
|
||||
Amnezia:
|
||||
container: amnezia-awg2
|
||||
interface: awg0
|
||||
published UDP: 443
|
||||
peer CIDR: 10.8.1.0/24
|
||||
|
||||
Expected status:
|
||||
service: active
|
||||
traffic drift: no
|
||||
host firewall drift: no
|
||||
anti-torrent drift: no
|
||||
swap drift: no
|
||||
```
|
||||
|
||||
Проверка ключевых сигналов:
|
||||
|
||||
```bash
|
||||
systemctl status awg2-harness.service --no-pager -l
|
||||
systemctl status awg2-reboot-scheduler.service --no-pager -l
|
||||
awg2-harness --config /etc/awg2-harness/config.toml status
|
||||
```
|
||||
|
||||
Проверка Docker/Amnezia runtime:
|
||||
|
||||
```bash
|
||||
docker ps --format 'table {{.Names}}\t{{.Status}}\t{{.Ports}}'
|
||||
C="$(docker ps --format '{{.Names}}' | grep -E '^(amnezia-awg2|amnezia-awg)$' | head -n1)"
|
||||
docker port "$C"
|
||||
docker exec "$C" wg show
|
||||
```
|
||||
|
||||
Проверка, что runtime config создан вручную (ожидаемое поведение):
|
||||
|
||||
```bash
|
||||
test -f /etc/awg2-harness/config.toml && echo "runtime config present"
|
||||
```
|
||||
|
||||
Если файл отсутствует после `apt install`, это корректно: создайте его вручную из `/usr/share/doc/awg2-harness/repo/config.example.toml`.
|
||||
Reference in New Issue
Block a user