36 lines
1.6 KiB
Plaintext
36 lines
1.6 KiB
Plaintext
# /etc/nikki/openvpn.env on the router, chmod 600 (LuCI / mihomo-kit.sh setup writes it)
|
|
VPN_USERNAME="username"
|
|
VPN_PASSWORD="your-password"
|
|
# only for a VPN that asks for a one-time code: the base32 secret from the TOTP QR
|
|
# (otpauth://totp/...?secret=XXXX); without it the password goes as is
|
|
#TOTP_SECRET="XXXXXXXXXXXXXXXX"
|
|
# how the code goes: auto (default: scrv1 when the .ovpn has static-challenge, else
|
|
# otp-last) | scrv1 (as OpenVPN Connect: SCRV1:b64(pass):b64(otp)) | otp-last | otp-first
|
|
#PASS_FORMAT=auto
|
|
# 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://intranet.example.com"
|
|
|
|
#OVPN_FILE=/etc/nikki/openvpn.ovpn
|
|
#PROVIDER_FILE=/etc/nikki/run/providers/openvpn.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 `ovpn.sh sched ...`; shown here for reference.
|
|
#OVPN_SCHED=0
|
|
#OVPN_SCHED_START=09:00
|
|
#OVPN_SCHED_END=17:00
|
|
#OVPN_SCHED_JITTER=10
|