platform: modularize api/gui, add docs-tests-web foundation, and refresh root config
This commit is contained in:
@@ -12,28 +12,40 @@ import "embed"
|
||||
// ---------------------------------------------------------------------
|
||||
|
||||
const (
|
||||
stateDir = "/var/lib/selective-vpn"
|
||||
statusFilePath = stateDir + "/status.json"
|
||||
dnsModePath = stateDir + "/dns-mode.json"
|
||||
trafficModePath = stateDir + "/traffic-mode.json"
|
||||
trafficAppMarksPath = stateDir + "/traffic-appmarks.json"
|
||||
trafficAppProfilesPath = stateDir + "/traffic-app-profiles.json"
|
||||
stateDir = "/var/lib/selective-vpn"
|
||||
statusFilePath = stateDir + "/status.json"
|
||||
dnsModePath = stateDir + "/dns-mode.json"
|
||||
trafficModePath = stateDir + "/traffic-mode.json"
|
||||
trafficAppMarksPath = stateDir + "/traffic-appmarks.json"
|
||||
trafficAppProfilesPath = stateDir + "/traffic-app-profiles.json"
|
||||
transportClientsPath = stateDir + "/transport-clients.json"
|
||||
transportInterfacesPath = stateDir + "/transport-interfaces.json"
|
||||
transportPolicyPath = stateDir + "/transport-policies.json"
|
||||
transportPolicyPlanPath = stateDir + "/transport-policies.plan.json"
|
||||
transportPolicyRuntimePath = stateDir + "/transport-policies.runtime.json"
|
||||
transportPolicyRuntimeSnap = stateDir + "/transport-policies.runtime.prev.json"
|
||||
transportOwnershipPath = stateDir + "/transport-ownership.json"
|
||||
transportOwnerLocksPath = stateDir + "/transport-owner-locks.json"
|
||||
transportConflictsPath = stateDir + "/transport-conflicts.json"
|
||||
transportPolicySnap = stateDir + "/transport-policies.prev.json"
|
||||
transportBootstrapPath = stateDir + "/transport-bootstrap-routes.json"
|
||||
|
||||
traceLogPath = stateDir + "/trace.log"
|
||||
smartdnsLogPath = stateDir + "/smartdns.log"
|
||||
lastIPsPath = stateDir + "/last-ips.txt"
|
||||
lastIPsMapPath = stateDir + "/last-ips-map.txt"
|
||||
lastIPsDirect = stateDir + "/last-ips-direct.txt"
|
||||
lastIPsDyn = stateDir + "/last-ips-dyn.txt"
|
||||
lastIPsMapDirect = stateDir + "/last-ips-map-direct.txt"
|
||||
lastIPsMapDyn = stateDir + "/last-ips-map-wildcard.txt"
|
||||
routesCacheMeta = stateDir + "/routes-clear-cache.json"
|
||||
routesCacheIPs = stateDir + "/routes-clear-cache-ips.txt"
|
||||
routesCacheDyn = stateDir + "/routes-clear-cache-ips-dyn.txt"
|
||||
routesCacheMap = stateDir + "/routes-clear-cache-ips-map.txt"
|
||||
routesCacheMapD = stateDir + "/routes-clear-cache-ips-map-direct.txt"
|
||||
routesCacheMapW = stateDir + "/routes-clear-cache-ips-map-wildcard.txt"
|
||||
routesCacheRT = stateDir + "/routes-clear-cache-routes.txt"
|
||||
traceLogPath = stateDir + "/trace.log"
|
||||
smartdnsLogPath = stateDir + "/smartdns.log"
|
||||
lastIPsPath = stateDir + "/last-ips.txt"
|
||||
lastIPsMapPath = stateDir + "/last-ips-map.txt"
|
||||
lastIPsDirect = stateDir + "/last-ips-direct.txt"
|
||||
lastIPsDyn = stateDir + "/last-ips-dyn.txt"
|
||||
lastIPsMapDirect = stateDir + "/last-ips-map-direct.txt"
|
||||
lastIPsMapDyn = stateDir + "/last-ips-map-wildcard.txt"
|
||||
routesCacheMeta = stateDir + "/routes-clear-cache.json"
|
||||
routesCacheIPs = stateDir + "/routes-clear-cache-ips.txt"
|
||||
routesCacheDyn = stateDir + "/routes-clear-cache-ips-dyn.txt"
|
||||
routesCacheMap = stateDir + "/routes-clear-cache-ips-map.txt"
|
||||
routesCacheMapD = stateDir + "/routes-clear-cache-ips-map-direct.txt"
|
||||
routesCacheMapW = stateDir + "/routes-clear-cache-ips-map-wildcard.txt"
|
||||
routesCacheRT = stateDir + "/routes-clear-cache-routes.txt"
|
||||
precheckForcePath = stateDir + "/precheck-force.once"
|
||||
|
||||
autoloopLogPath = stateDir + "/adguard-autoloop.log"
|
||||
loginStatePath = stateDir + "/adguard-login.json"
|
||||
|
||||
Reference in New Issue
Block a user