mirror of
https://github.com/dokku/dokku.git
synced 2025-12-16 20:17:44 +01:00
23 lines
464 B
Go
23 lines
464 B
Go
package proxy
|
|
|
|
import (
|
|
"github.com/dokku/dokku/plugins/config"
|
|
)
|
|
|
|
func getAppProxyType(appName string) string {
|
|
return config.GetWithDefault(appName, "DOKKU_APP_PROXY_TYPE", "")
|
|
}
|
|
|
|
func getComputedProxyType(appName string) string {
|
|
proxyType := getAppProxyType(appName)
|
|
if proxyType == "" {
|
|
proxyType = getGlobalProxyType()
|
|
}
|
|
|
|
return proxyType
|
|
}
|
|
|
|
func getGlobalProxyType() string {
|
|
return config.GetWithDefault("--global", "DOKKU_PROXY_TYPE", "nginx")
|
|
}
|