feat: file explorer
All checks were successful
Build and Push App Image / build-and-push (push) Successful in 50s
All checks were successful
Build and Push App Image / build-and-push (push) Successful in 50s
This commit is contained in:
@@ -36,9 +36,15 @@ type LoginAttempt struct {
|
||||
|
||||
// FeatureFlags controls app-wide behavior toggles.
|
||||
type FeatureFlags struct {
|
||||
RegistrationEnabled bool `bson:"registration_enabled"`
|
||||
ProviderLoginEnabled bool `bson:"provider_login_enabled"`
|
||||
PublicSharingEnabled bool `bson:"public_sharing_enabled"`
|
||||
RegistrationEnabled bool `bson:"registration_enabled"`
|
||||
ProviderLoginEnabled bool `bson:"provider_login_enabled"`
|
||||
PublicSharingEnabled bool `bson:"public_sharing_enabled"`
|
||||
FileExplorerEnabled bool `bson:"file_explorer_enabled"`
|
||||
S3Endpoint string `bson:"s3_endpoint,omitempty"`
|
||||
S3Bucket string `bson:"s3_bucket,omitempty"`
|
||||
S3Region string `bson:"s3_region,omitempty"`
|
||||
S3AccessKey string `bson:"s3_access_key,omitempty"`
|
||||
S3SecretKey string `bson:"s3_secret_key,omitempty"` // AES-256-GCM encrypted
|
||||
}
|
||||
|
||||
// NewDefaultFeatureFlags returns safe defaults for a new deployment.
|
||||
@@ -47,5 +53,6 @@ func NewDefaultFeatureFlags() *FeatureFlags {
|
||||
RegistrationEnabled: true,
|
||||
ProviderLoginEnabled: true,
|
||||
PublicSharingEnabled: true,
|
||||
FileExplorerEnabled: false,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user