-
Notifications
You must be signed in to change notification settings - Fork 6
Configuration
igoogolx edited this page Dec 19, 2022
·
4 revisions
Lux uses JSON for configuration files. Don't edit it directly, unless you know what you're doing.
{
//A group of proxy servers: shodowsocks or socks5
"proxy": [],
//A group of matcher rules to determine which DNS server to use and how an ip is connected(proxy or direct)
"rule": [
{
// The name of this rule, used to display in dashboard
"name": "proxy_all",
"dns": {
//If a domain is not matched, fallback to primary
"primary": {
// DNS server: dhcp or ip
"address": "114.114.114.114",
//Match by domains, only support regex
"domains": [],
//Match by geo site files
"geoSites": []
},
"secondary": {
"address": "8.8.8.8",
"domains": [
".*"
],
"geoSites": []
}
},
"ip": {
//If an ip is not matched, fallback to this
"defaultProxy": true,
//Match by geo ip files
"geoIps": {
"bypass": [
"PRIVATE"
],
"proxy": []
},
//Match by geo site files
"geoSites": {
"bypass": [],
"proxy": []
},
//Match by subnets
"subnet": {
"bypass": [],
"proxy": []
}
}
},
],
//Current selected rule and proxy server
"selected": {
"proxy": "",
"rule": "proxy_all"
},
"setting": {
// Actual proxy server address. It's necessary when your server address is 127.0.0.1 or localhost. In that case,
// lux must know the actual address
"trueProxyServer": "",
//Default outbound network interface name. If not set, lux will find it automatically
"defaultInterface": "",
//Allow other devices in LAN to connect
"localServer": {
"http": {
"port": 1090,
"enabled": false
}
}
}
}