e177300864
Rimuove le istruzioni per generare PASSWORD_HASH, aggiorna la tabella variabili, descrive il wizard di setup al primo avvio e aggiunge la raccomandazione di aggiornamento mensile per la sicurezza. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1.5 KiB
1.5 KiB
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
What this is
A Docker Compose setup for a self-hosted WireGuard VPN server using wg-easy, designed to run on a Raspberry Pi or any Linux server. The web UI (wg-easy) handles client management, QR code generation, and key lifecycle.
Common commands
# First-time setup
cp .env.example .env
# Edit .env: set TZ, optionally WG_PORT / WG_UI_PORT
# Start the VPN
docker compose up -d
# Update wg-easy to the latest image
docker compose pull && docker compose up -d
# View logs
docker compose logs -f wg-easy
Configuration
.env (not committed) controls only infrastructure-level settings:
| Variable | Description |
|---|---|
TZ |
IANA timezone (e.g. Europe/Rome) |
WG_PORT |
UDP VPN port (default 51820) |
WG_UI_PORT |
Web UI port (default 51821) |
v15+: Host, password, and DNS are configured through the web UI wizard on first launch — not via environment variables.
Important constraints
wg-data/is auto-generated by the container on first start and holds live WireGuard keys (wg0.conf,wg0.json). Never commit it..envis gitignored.- The container requires
NET_ADMINandSYS_MODULEcapabilities plusnet.ipv4.ip_forward=1sysctl — these are already set indocker-compose.yml. - The router must forward UDP port 51820 (or
WG_PORT) to the server's local IP. INSECURE=trueis set indocker-compose.ymlto allow HTTP access on the local network.