Ability to configure cname
This commit is contained in:
@@ -98,6 +98,7 @@ func main() {
|
||||
}
|
||||
|
||||
viper.SetDefault("apps.public-albums", "https://albums.ente.io")
|
||||
viper.SetDefault("apps.custom-domain.cname", "https://my.ente.io")
|
||||
viper.SetDefault("apps.public-locker", "https://locker.ente.io")
|
||||
viper.SetDefault("apps.accounts", "https://accounts.ente.io")
|
||||
viper.SetDefault("apps.cast", "https://cast.ente.io")
|
||||
|
||||
@@ -95,6 +95,9 @@ apps:
|
||||
accounts:
|
||||
# Default is https://family.ente.io
|
||||
family:
|
||||
custom-domain:
|
||||
# Default is https://my.ente.io
|
||||
cname:
|
||||
|
||||
# Database connection parameters
|
||||
db:
|
||||
|
||||
@@ -33,6 +33,7 @@ type FeatureFlagResponse struct {
|
||||
EnableMobMultiPart bool `json:"enableMobMultiPart"`
|
||||
CastUrl string `json:"castUrl"`
|
||||
CustomDomain *string `json:"customDomain,omitempty"`
|
||||
CustomDomainCNAME string `json:"customDomainCNAME,omitempty"`
|
||||
}
|
||||
|
||||
type FlagKey string
|
||||
|
||||
@@ -75,6 +75,7 @@ func (c *Controller) GetFeatureFlags(ctx *gin.Context) (*ente.FeatureFlagRespons
|
||||
// except internal user.rt
|
||||
EnableMobMultiPart: true,
|
||||
CastUrl: viper.GetString("apps.cast"),
|
||||
CustomDomainCNAME: viper.GetString("apps.custom-domain.cname"),
|
||||
}
|
||||
for key, value := range values {
|
||||
flag := ente.FlagKey(key)
|
||||
|
||||
Reference in New Issue
Block a user