mihomo-kit/router/bmstu.env.example
2026-10-15 13:24:29 +03:00

28 lines
1.0 KiB
Plaintext

# /etc/nikki/bmstu.env on the router, chmod 600 (mihomo-kit.sh setup writes it)
VPN_USERNAME="username"
VPN_PASSWORD="your-password"
# base32 secret from the TOTP QR (otpauth://totp/...?secret=XXXX)
TOTP_SECRET="XXXXXXXXXXXXXXXX"
# scrv1 (default, as OpenVPN Connect: SCRV1:b64(pass):b64(otp)) | otp-last | otp-first
#PASS_FORMAT=scrv1
# connect-mac (default: present as OpenVPN Connect 3.7.1 for macOS) | mihomo
#OVPN_MIMIC=connect-mac
# nikki API: read from uci (nikki.mixin.api_listen / api_secret) unless set here
#API="http://192.168.1.1:9090"
#API_SECRET=""
# something reachable only (or at least) through the VPN
#CHECK_URL="https://www.bmstu.ru"
#OVPN_FILE=/etc/nikki/bmstu.ovpn
#PROVIDER_FILE=/etc/nikki/run/providers/bmstu.yaml
# Schedule: with OVPN_SCHED=1 the tunnel is up only inside these local-time (MSK)
# hours, with up to OVPN_SCHED_JITTER minutes of deterministic per-day jitter on
# each edge. Managed from LuCI or `bmstu-otp.sh sched ...`; shown here for reference.
#OVPN_SCHED=0
#OVPN_SCHED_START=09:00
#OVPN_SCHED_END=17:00
#OVPN_SCHED_JITTER=10