Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Review comment + return castUrl as part of featureFlag

Neeraj Gupta62155040da99
diff --git a/server/cmd/museum/main.go b/server/cmd/museum/main.go
index 712df696c6..1309bda74b 100644
--- a/server/cmd/museum/main.go
+++ b/server/cmd/museum/main.go
@@ -92,9 +92,10 @@ func main() {
if err != nil {
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.accounts", "https://accounts.ente.io")
+ viper.SetDefault("apps.cast", "https://cast.ente.io")
viper.SetDefault("apps.family", "https://family.ente.io")
setupLogger(environment)
diff --git a/server/configurations/local.yaml b/server/configurations/local.yaml
index 528d673382..f39fbcc283 100644
--- a/server/configurations/local.yaml
+++ b/server/configurations/local.yaml
@@ -80,7 +80,7 @@ apps:
# set this to the URL where your albums web app is running.
public-albums:
# Default is https://cast.ente.io
- cast-album:
+ cast:
# Default is https://accounts.ente.io
# Set this to the URL where your accounts web app is running, primarily used for
# passkey based 2FA.
diff --git a/server/ente/remotestore.go b/server/ente/remotestore.go
index 22e22d9b2c..8546fd3cf0 100644
--- a/server/ente/remotestore.go
+++ b/server/ente/remotestore.go
@@ -23,14 +23,15 @@ type AdminUpdateKeyValueRequest struct {
type FeatureFlagResponse struct {
EnableStripe bool `json:"enableStripe"`
// If true, the mobile client will stop using CF worker to download files
- DisableCFWorker bool `json:"disableCFWorker"`
- MapEnabled bool `json:"mapEnabled"`
- FaceSearchEnabled bool `json:"faceSearchEnabled"`
- PassKeyEnabled bool `json:"passKeyEnabled"`
- RecoveryKeyVerified bool `json:"recoveryKeyVerified"`
- InternalUser bool `json:"internalUser"`
- BetaUser bool `json:"betaUser"`
- EnableMobMultiPart bool `json:"enableMobMultiPart"`
+ DisableCFWorker bool `json:"disableCFWorker"`
+ MapEnabled bool `json:"mapEnabled"`
+ FaceSearchEnabled bool `json:"faceSearchEnabled"`
+ PassKeyEnabled bool `json:"passKeyEnabled"`
+ RecoveryKeyVerified bool `json:"recoveryKeyVerified"`
+ InternalUser bool `json:"internalUser"`
+ BetaUser bool `json:"betaUser"`
+ EnableMobMultiPart bool `json:"enableMobMultiPart"`
+ CastUrl string `json:"castUrl"`
}
type FlagKey string
diff --git a/server/pkg/api/user.go b/server/pkg/api/user.go
index 481c954273..5cdbd0ec9a 100644
--- a/server/pkg/api/user.go
+++ b/server/pkg/api/user.go
@@ -487,7 +487,7 @@ func (h *UserHandler) GetAccountsToken(c *gin.Context) {
}
c.JSON(http.StatusOK, gin.H{
"accountsToken": token,
- "accountUrl": viper.GetString("apps.account"),
+ "accountsUrl": viper.GetString("apps.accounts"),
})
}
diff --git a/server/pkg/controller/remotestore/controller.go b/server/pkg/controller/remotestore/controller.go
index d6df724b42..f031f65033 100644
--- a/server/pkg/controller/remotestore/controller.go
+++ b/server/pkg/controller/remotestore/controller.go
@@ -4,6 +4,7 @@ import (
"database/sql"
"errors"
"fmt"
+ "github.com/spf13/viper"
"github.com/ente-io/museum/ente"
"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
// except internal user.rt
EnableMobMultiPart: true,
+ CastUrl: viper.GetString("apps.cast"),
}
for key, value := range values {
flag := ente.FlagKey(key)