Files
dokku/plugins/proxy/functions.go

23 lines
464 B
Go
Raw Normal View History

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 {
2024-01-19 07:15:36 -05:00
proxyType := getAppProxyType(appName)
if proxyType == "" {
2024-01-19 07:15:36 -05:00
proxyType = getGlobalProxyType()
}
return proxyType
}
func getGlobalProxyType() string {
return config.GetWithDefault("--global", "DOKKU_PROXY_TYPE", "nginx")
}