mihomo-kit/router/bmstu.env.example

34 lines
1.4 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
# kit core, pauses before reconnecting (seconds): after a drop or a failed connect
# (doubled while it keeps failing, up to 10 min), after the server ended the session
# (a kick; doubled per kick in a row, up to 30 min), and the random spread of each
#OVPN_RECONNECT_PAUSE=120
#OVPN_KICK_PAUSE=120
#OVPN_RECONNECT_JITTER=30
# 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