mirror of
https://github.com/edgebox-iot/edgeboxctl.git
synced 2026-10-03 01:38:30 +02:00
Added browserDevProxyPath
This commit is contained in:
@@ -113,6 +113,7 @@ const EdgeAppsBackupPath string = "edgeAppsBackupPath"
|
|||||||
const WsPath string = "wsPath"
|
const WsPath string = "wsPath"
|
||||||
const LoggerPath string = "loggerPath"
|
const LoggerPath string = "loggerPath"
|
||||||
const BrowserDevPasswordFileLocation string = "browserDevPasswordFileLocation"
|
const BrowserDevPasswordFileLocation string = "browserDevPasswordFileLocation"
|
||||||
|
const BrowserDevProxyPath string = "browserDevProxyPath"
|
||||||
|
|
||||||
|
|
||||||
// GetPath : Returns either the hardcoded path, or a overwritten value via .env file at project root. Register paths here for seamless working code between dev and prod environments ;)
|
// GetPath : Returns either the hardcoded path, or a overwritten value via .env file at project root. Register paths here for seamless working code between dev and prod environments ;)
|
||||||
@@ -197,6 +198,13 @@ func GetPath(pathKey string) string {
|
|||||||
targetPath = "/root/.config/code-server/config.yaml"
|
targetPath = "/root/.config/code-server/config.yaml"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case BrowserDevProxyPath:
|
||||||
|
if env["BROWSERDEV_PROXY_PATH"] != "" {
|
||||||
|
targetPath = env["BROWSERDEV_PROXY_PATH"]
|
||||||
|
} else {
|
||||||
|
targetPath = "/home/system/components/dev/"
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
||||||
log.Printf("path_key %s nonexistant in GetPath().\n", pathKey)
|
log.Printf("path_key %s nonexistant in GetPath().\n", pathKey)
|
||||||
|
|||||||
Reference in New Issue
Block a user