mirror of
https://github.com/ente-io/ente.git
synced 2025-08-10 16:32:39 +00:00
Review comment + return castUrl as part of featureFlag
This commit is contained in:
parent
4cb11f4b06
commit
62155040da
@ -92,9 +92,10 @@ func main() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
viper.SetDefault("apps.accounts", "https://accounts.ente.io")
|
|
||||||
viper.SetDefault("apps.cast-album", "https://cast.ente.io")
|
|
||||||
viper.SetDefault("apps.public-albums", "https://albums.ente.io")
|
viper.SetDefault("apps.public-albums", "https://albums.ente.io")
|
||||||
|
viper.SetDefault("apps.accounts", "https://accounts.ente.io")
|
||||||
|
viper.SetDefault("apps.cast", "https://cast.ente.io")
|
||||||
viper.SetDefault("apps.family", "https://family.ente.io")
|
viper.SetDefault("apps.family", "https://family.ente.io")
|
||||||
|
|
||||||
setupLogger(environment)
|
setupLogger(environment)
|
||||||
|
@ -80,7 +80,7 @@ apps:
|
|||||||
# set this to the URL where your albums web app is running.
|
# set this to the URL where your albums web app is running.
|
||||||
public-albums:
|
public-albums:
|
||||||
# Default is https://cast.ente.io
|
# Default is https://cast.ente.io
|
||||||
cast-album:
|
cast:
|
||||||
# Default is https://accounts.ente.io
|
# Default is https://accounts.ente.io
|
||||||
# Set this to the URL where your accounts web app is running, primarily used for
|
# Set this to the URL where your accounts web app is running, primarily used for
|
||||||
# passkey based 2FA.
|
# passkey based 2FA.
|
||||||
|
@ -23,14 +23,15 @@ type AdminUpdateKeyValueRequest struct {
|
|||||||
type FeatureFlagResponse struct {
|
type FeatureFlagResponse struct {
|
||||||
EnableStripe bool `json:"enableStripe"`
|
EnableStripe bool `json:"enableStripe"`
|
||||||
// If true, the mobile client will stop using CF worker to download files
|
// If true, the mobile client will stop using CF worker to download files
|
||||||
DisableCFWorker bool `json:"disableCFWorker"`
|
DisableCFWorker bool `json:"disableCFWorker"`
|
||||||
MapEnabled bool `json:"mapEnabled"`
|
MapEnabled bool `json:"mapEnabled"`
|
||||||
FaceSearchEnabled bool `json:"faceSearchEnabled"`
|
FaceSearchEnabled bool `json:"faceSearchEnabled"`
|
||||||
PassKeyEnabled bool `json:"passKeyEnabled"`
|
PassKeyEnabled bool `json:"passKeyEnabled"`
|
||||||
RecoveryKeyVerified bool `json:"recoveryKeyVerified"`
|
RecoveryKeyVerified bool `json:"recoveryKeyVerified"`
|
||||||
InternalUser bool `json:"internalUser"`
|
InternalUser bool `json:"internalUser"`
|
||||||
BetaUser bool `json:"betaUser"`
|
BetaUser bool `json:"betaUser"`
|
||||||
EnableMobMultiPart bool `json:"enableMobMultiPart"`
|
EnableMobMultiPart bool `json:"enableMobMultiPart"`
|
||||||
|
CastUrl string `json:"castUrl"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type FlagKey string
|
type FlagKey string
|
||||||
|
@ -487,7 +487,7 @@ func (h *UserHandler) GetAccountsToken(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
c.JSON(http.StatusOK, gin.H{
|
c.JSON(http.StatusOK, gin.H{
|
||||||
"accountsToken": token,
|
"accountsToken": token,
|
||||||
"accountUrl": viper.GetString("apps.account"),
|
"accountsUrl": viper.GetString("apps.accounts"),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,6 +4,7 @@ import (
|
|||||||
"database/sql"
|
"database/sql"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
"github.com/ente-io/museum/ente"
|
"github.com/ente-io/museum/ente"
|
||||||
"github.com/ente-io/museum/pkg/repo/remotestore"
|
"github.com/ente-io/museum/pkg/repo/remotestore"
|
||||||
@ -59,6 +60,7 @@ func (c *Controller) GetFeatureFlags(ctx *gin.Context) (*ente.FeatureFlagRespons
|
|||||||
// Changing it to false will hide the option and disable multi part upload for everyone
|
// Changing it to false will hide the option and disable multi part upload for everyone
|
||||||
// except internal user.rt
|
// except internal user.rt
|
||||||
EnableMobMultiPart: true,
|
EnableMobMultiPart: true,
|
||||||
|
CastUrl: viper.GetString("apps.cast"),
|
||||||
}
|
}
|
||||||
for key, value := range values {
|
for key, value := range values {
|
||||||
flag := ente.FlagKey(key)
|
flag := ente.FlagKey(key)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user