-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.env.example
More file actions
59 lines (43 loc) · 2.57 KB
/
.env.example
File metadata and controls
59 lines (43 loc) · 2.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# .env.example — copy to .env and edit before building
# After editing run: dart scripts/apply_env.dart
# This regenerates lib/config/env_config.dart which is compiled into the app.
# ── Infrastructure ─────────────────────────────────────────────────────────────
# WebRTC signaling server (SDP / ICE candidate exchange between peers)
# Used in: Server Settings > Signaling URL, Client Settings > Signaling URL
SIGNALING_URL=http://[IP]:5601
# Server discovery registry (browse available servers on the network)
# Used in: Server Settings > Discovery URL, Client Settings > Discovery URL
DISCOVERY_URL=http://[IP]:5602
# STUN server for NAT type detection and ICE candidate gathering
# Used in: Server Settings > STUN Server, Client Settings > STUN Server
STUN_SERVER=stun.l.google.com:19302
# ── Server Defaults ────────────────────────────────────────────────────────────
# TCP port the server proxy (xray-core) listens on
SERVER_LISTEN_PORT=10853
# NAT traversal strategy: auto | upnp | holepunch
SERVER_NAT_METHOD=auto
# Proxy protocol: vless | socks
SERVER_PROTOCOL=vless
# Transport layer: kcp | xhttp
SERVER_TRANSPORT=xhttp
# Register the server in the discovery list by default
SERVER_DISCOVERY_ENABLED=true
# Use relay fallback for symmetric NAT (requires a running relay service)
SERVER_USE_RELAY=false
# ── Client Defaults ────────────────────────────────────────────────────────────
# Local SOCKS5 proxy port consumed by tun2socks
CLIENT_SOCKS_PORT=10808
# TUN interface IP address assigned to the Android VPN device
CLIENT_TUN_ADDRESS=10.0.0.2
# TUN MTU in bytes (valid range: 1280–9000; keep <= server MTU)
CLIENT_MTU=1500
# DNS servers pushed into the VPN to prevent DNS leaks
CLIENT_DNS1=8.8.8.8
CLIENT_DNS2=1.1.1.1
# Allow the device ISP DNS as fallback — PRIVACY RISK, keep false in production
CLIENT_ALLOW_DIRECT_DNS=false
# Show the discovery server browser on the client screen by default
CLIENT_DISCOVERY_ENABLED=true
# ── Android VPN UI ─────────────────────────────────────────────────────────────
# Label shown in Android's VPN system settings and notification
VPN_SESSION_NAME=NATProxy