Remove unuused legacy https functionality
This commit is contained in:
parent
471ccbadc5
commit
f8dd6cb956
2 changed files with 0 additions and 43 deletions
|
|
@ -30,27 +30,12 @@ func (cfg Config) HTTPSEnabledEnv() string {
|
|||
return "false"
|
||||
}
|
||||
|
||||
// IfHttps returns value when the distillery has https enabled, and the empty string otherwise.
|
||||
func (cfg Config) IfHttps(value string) string {
|
||||
if !cfg.HTTPSEnabled() {
|
||||
return ""
|
||||
}
|
||||
return value
|
||||
}
|
||||
|
||||
// DefaultHostRule returns the default traefik hostname rule for this distillery.
|
||||
// This consists of the [DefaultDomain] as well as [ExtraDomains].
|
||||
func (cfg Config) DefaultHostRule() string {
|
||||
return cfg.HostRule(append([]string{cfg.DefaultDomain}, cfg.SelfExtraDomains...)...)
|
||||
}
|
||||
|
||||
// DefaultSSLHost returns the default hostname for the ssl version of the distillery.
|
||||
//
|
||||
// This is exactly [DefaultHost] when SSL is enabled, and the empty string otherwise.
|
||||
func (cfg Config) xDefaultSSLHost() string {
|
||||
panic("not implemented")
|
||||
}
|
||||
|
||||
// SlugFromHost returns the slug belonging to the appropriate host.'
|
||||
//
|
||||
// When host is a top-level domain, returns "", true.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue