32 lines
1.0 KiB
Diff
32 lines
1.0 KiB
Diff
diff --git a/server/pkg/controller/family/admin.go b/server/pkg/controller/family/admin.go
|
|
index 1b58f6b8..8fd74a99 100644
|
|
--- a/server/pkg/controller/family/admin.go
|
|
+++ b/server/pkg/controller/family/admin.go
|
|
@@
|
|
- "github.com/ente-io/museum/pkg/utils/auth"
|
|
- "github.com/ente-io/museum/pkg/utils/billing"
|
|
+ "github.com/ente-io/museum/pkg/utils/auth"
|
|
+ "github.com/ente-io/museum/pkg/utils/billing"
|
|
emailUtil "github.com/ente-io/museum/pkg/utils/email"
|
|
"github.com/ente-io/stacktrace"
|
|
"github.com/gin-gonic/gin"
|
|
"github.com/google/uuid"
|
|
"github.com/sirupsen/logrus"
|
|
+ "github.com/spf13/viper"
|
|
)
|
|
@@
|
|
- FamilyPlainHost = "https://family.ente.io"
|
|
+ defaultFamilyHost = "https://family.ente.io"
|
|
)
|
|
+
|
|
+func familyInviteHost() string {
|
|
+ host := viper.GetString("apps.family")
|
|
+ if host != "" {
|
|
+ return host
|
|
+ }
|
|
+ return defaultFamilyHost
|
|
+}
|
|
@@
|
|
- templateData["FamilyInviteLink"] = fmt.Sprintf("%s?inviteToken=%s", FamilyPlainHost, *inviteToken)
|
|
+ templateData["FamilyInviteLink"] = fmt.Sprintf("%s?inviteToken=%s", familyInviteHost(), *inviteToken)
|