mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 07:28:26 +00:00
[server] Add struct for fileData config
This commit is contained in:
parent
e32cd7b64c
commit
d1dc977d5e
@ -169,6 +169,15 @@ s3:
|
|||||||
# resolved, e.g. when running a local instance, or when using MinIO as a
|
# resolved, e.g. when running a local instance, or when using MinIO as a
|
||||||
# production store.
|
# production store.
|
||||||
#use_path_style_urls: true
|
#use_path_style_urls: true
|
||||||
|
#
|
||||||
|
# file-data-storage:
|
||||||
|
# derivedMetadata:
|
||||||
|
# bucket:
|
||||||
|
# replicas: []
|
||||||
|
# img_preview:
|
||||||
|
# bucket:
|
||||||
|
# replicas: []
|
||||||
|
|
||||||
|
|
||||||
# Key used for encrypting customer emails before storing them in DB
|
# Key used for encrypting customer emails before storing them in DB
|
||||||
#
|
#
|
||||||
|
12
server/pkg/utils/s3config/filedata.go
Normal file
12
server/pkg/utils/s3config/filedata.go
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
package s3config
|
||||||
|
|
||||||
|
import "github.com/ente-io/museum/ente"
|
||||||
|
|
||||||
|
type ObjectBucketConfig struct {
|
||||||
|
PrimaryBucket string `mapstructure:"primary"`
|
||||||
|
ReplicaBuckets []string `mapstructure:"replicas"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type FileDataConfig struct {
|
||||||
|
ObjectBucketConfig map[ente.ObjectType]ObjectBucketConfig `mapstructure:"objectBuckets"`
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user