Add proxy-keepalive to Nginx properties

This commit is contained in:
Ostap Brehin committed 2025-12-27 20:27:29 +00:00
1 parent fd03ee7849
commit 675529cb6f
7 files changed
+53 -3

No files matched your search

+17
View File
@@ -518,3 +518,20 @@ func ComputedXForwardedSSL(appName string) string {
func GlobalXForwardedSSL() string {
return common.PropertyGetDefault("nginx", "--global", "x-forwarded-ssl", "")
}
func AppProxyKeepalive(appName string) string {
return common.PropertyGet("nginx", appName, "proxy-keepalive")
}
func ComputedProxyKeepalive(appName string) string {
appValue := AppProxyKeepalive(appName)
if appValue != "" {
return appValue
}
return GlobalProxyKeepalive()
}
func GlobalProxyKeepalive() string {
return common.PropertyGetDefault("nginx", "--global", "proxy-keepalive", "")
}