mihomo-kit/router/profile.env.example
Sam Latsin 2557a9aa49 mihomo-kit: config kit for mihomo on nikki and FlClash
Templates + router script + browser constructor that build mihomo
profiles (router home/street, mobile) with optional OpenVPN (TOTP)
and Tailscale, one-command installer and maintenance commands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 00:57:28 +03:00

44 lines
1.5 KiB
Plaintext

# mihomo-kit profile. On the router:
# /etc/nikki/profiles.d/common.env shared part (secrets: subscriptions, BOOT)
# /etc/nikki/profiles.d/<name>.env per profile, overrides common.env
# e.g. home.env = "LOCATION=home", street.env = "LOCATION=street".
# Then: mihomo-kit.sh build && mihomo-kit.sh use home
# chmod 600: this file holds secrets.
# router | mobile (mobile: no torrent/OpenVPN/Tailscale, FlClash-style DNS)
TARGET=router
# home: OpenVPN/Tailscale go direct; street: OpenVPN goes through OVPN-EXIT (RU node)
LOCATION=home
# subscription URLs, space separated -> sub0, sub1, ...
SUBS="https://sub.example.com/sub/xxxx"
# BOOT: whitelisted vless reality node used to download the subscriptions
BOOT=1
BOOT_SERVER=1.2.3.4
BOOT_PORT=443
BOOT_UUID=00000000-0000-0000-0000-000000000000
BOOT_SNI=eh.vk.ru
BOOT_PBK=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
BOOT_SID=xxxxxxxxxxxxxxxx
# torrent group for clients using source ports 20000-20199
TORRENT=1
# extra IPs routed through RU, space separated CIDRs
RU_IPS="194.190.191.112/32"
# OpenVPN (BMSTU), needs /etc/nikki/bmstu.env and bmstu-otp.sh
OPENVPN=0
#OVPN_SERVER_HOST=openvpn4.bmstu.ru
#OVPN_SERVER_IPS="195.19.40.7 195.19.33.86"
#OVPN_ROUTES="172.16.0.0/16 172.19.33.0/24 195.19.32.0/19"
# Tailscale (first login: URL in /var/log/nikki/core.log)
TAILSCALE=0
TS_HOSTNAME=fudy-mihomo
# split-DNS domains of the tailnet besides *.ts.net, space separated
TS_DOMAINS=""
# 1 = Tailscale through TS-EXIT (only ss/hysteria2/tuic nodes work for it)
TS_EXIT=0