e321dd312b
Configurazione Docker per WireGuard VPN con wg-easy. Include docker-compose.yml, .env.example, .gitignore e README.
30 lines
880 B
Bash
30 lines
880 B
Bash
# ============================================================
|
|
# WireGuard VPN — Configurazione locale
|
|
# Copia .env.example in .env e compila i valori richiesti.
|
|
# ============================================================
|
|
|
|
# --- OBBLIGATORI ---
|
|
|
|
# IP pubblico o hostname DDNS del server (es. mio-host.duckdns.org)
|
|
WG_HOST=your-ddns-hostname.example.com
|
|
|
|
# Hash bcrypt della password per la web UI.
|
|
# Vedi README.md per come generarlo.
|
|
# ATTENZIONE: incolla il valore esatto, senza aggiungere $$ o escape.
|
|
PASSWORD_HASH=$2a$12$replacethiswithyourrealbcrypthash
|
|
|
|
# Fuso orario (formato IANA)
|
|
# Lista completa: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
TZ=Europe/Rome
|
|
|
|
# --- OPZIONALI (valori di default mostrati) ---
|
|
|
|
# Porta UDP WireGuard
|
|
WG_PORT=51820
|
|
|
|
# Porta TCP interfaccia web
|
|
WG_UI_PORT=51821
|
|
|
|
# DNS inviati ai client
|
|
WG_DEFAULT_DNS=1.1.1.1,8.8.8.8
|