Remove unuused legacy https functionality
This commit is contained in:
parent
471ccbadc5
commit
f8dd6cb956
2 changed files with 0 additions and 43 deletions
|
|
@ -1,28 +0,0 @@
|
|||
#######################
|
||||
# Meta Settings
|
||||
#######################
|
||||
|
||||
# Real path for volumes to be stored
|
||||
DATA_PATH=/var/www/deploy/instances/example.slug/data
|
||||
UTILS_DIR=/var/www/deploy/runtime/utils/
|
||||
|
||||
#######################
|
||||
### Web Server settings
|
||||
#######################
|
||||
# the hostname for the website
|
||||
VIRTUAL_HOST=example.com
|
||||
|
||||
# optional letsencrypt support
|
||||
# when blank, ignore
|
||||
LETSENCRYPT_HOST=
|
||||
LETSENCRYPT_EMAIL=
|
||||
|
||||
### SQL settings
|
||||
MYSQL_HOST=mysql
|
||||
MYSQL_USER=user
|
||||
MYSQL_PASS=pass
|
||||
|
||||
### GraphDB settings
|
||||
GRAPHDB_HOST=graphdb
|
||||
GRAPHDB_USER=user
|
||||
GRAPHDB_PASS=pass
|
||||
|
|
@ -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