Skip to content

armgit / ente

Public Imported from GitHub
0

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

[server] Config for embed albums

Neeraj Guptab8f33815390b
diff --git a/server/cmd/museum/main.go b/server/cmd/museum/main.go
index bf6b4f93c2..1d6baf3946 100644
--- a/server/cmd/museum/main.go
+++ b/server/cmd/museum/main.go
@@ -98,6 +98,7 @@ func main() {
}
viper.SetDefault("apps.public-albums", "https://albums.ente.io")
+ viper.SetDefault("apps.embed-albums", "https://embed.ente.io")
viper.SetDefault("apps.custom-domain.cname", "my.ente.io")
viper.SetDefault("apps.public-locker", "https://locker.ente.io")
viper.SetDefault("apps.accounts", "https://accounts.ente.io")
diff --git a/server/configurations/local.yaml b/server/configurations/local.yaml
index 60a0b9f51f..ed33189716 100644
--- a/server/configurations/local.yaml
+++ b/server/configurations/local.yaml
@@ -87,6 +87,9 @@ apps:
# If you're running a self hosted instance and wish to serve public links for photos,
# set this to the URL where your albums web app is running.
public-albums:
+ # Default is https://embed.ente.io
+ # For self-hosted instances, set this to the URL where your embed app is running.
+ embed-albums:
# Default is https://locker.ente.io
#
# If you're running a self-hosted instance and wish to serve public links for locker,
diff --git a/server/ente/remotestore.go b/server/ente/remotestore.go
index d4468c04d6..2b050deef3 100644
--- a/server/ente/remotestore.go
+++ b/server/ente/remotestore.go
@@ -40,6 +40,7 @@ type FeatureFlagResponse struct {
BetaUser bool `json:"betaUser"`
EnableMobMultiPart bool `json:"enableMobMultiPart"`
CastUrl string `json:"castUrl"`
+ EmbedUrl string `json:"embedUrl"`
CustomDomain *string `json:"customDomain,omitempty"`
CustomDomainCNAME string `json:"customDomainCNAME,omitempty"`
}
diff --git a/server/pkg/controller/remotestore/controller.go b/server/pkg/controller/remotestore/controller.go
index eac04534ba..5f10094b82 100644
--- a/server/pkg/controller/remotestore/controller.go
+++ b/server/pkg/controller/remotestore/controller.go
@@ -78,6 +78,7 @@ func (c *Controller) GetFeatureFlags(ctx *gin.Context) (*ente.FeatureFlagRespons
// except internal user.rt
EnableMobMultiPart: true,
CastUrl: viper.GetString("apps.cast"),
+ EmbedUrl: viper.GetString("apps.embed-albums"),
CustomDomainCNAME: viper.GetString("apps.custom-domain.cname"),
}
for key, value := range values {