diff options
| author | jerebear12 <72420925+jerebear12@users.noreply.github.com> | 2024-02-27 10:38:55 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-27 08:38:55 -0800 |
| commit | 85d6d5371bc39150755b95acc1fa3a7b34657eed (patch) | |
| tree | c9dc78b5bf2aad45804be54292fa3db8d1ef61f4 /weed/command/filer.go | |
| parent | e88467bb36b3618723c663d6b0e96541f654371c (diff) | |
| download | seaweedfs-85d6d5371bc39150755b95acc1fa3a7b34657eed.tar.xz seaweedfs-85d6d5371bc39150755b95acc1fa3a7b34657eed.zip | |
Disable filer UI in configuration (#5297)
* Add filer.ui.enabled configuration property
* Add filer.expose_directory_metadata to config
* Ammend commit
* Remove ShowUI reference
* Update all routes that allow directory metadata
* Add cmd flag to server.go
Diffstat (limited to 'weed/command/filer.go')
| -rw-r--r-- | weed/command/filer.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/command/filer.go b/weed/command/filer.go index cee886d18..1d8a6c4b8 100644 --- a/weed/command/filer.go +++ b/weed/command/filer.go @@ -62,6 +62,7 @@ type FilerOptions struct { downloadMaxMBps *int diskType *string allowedOrigins *string + exposeDirectoryData *bool } func init() { @@ -93,6 +94,7 @@ func init() { f.downloadMaxMBps = cmdFiler.Flag.Int("downloadMaxMBps", 0, "download max speed for each download request, in MB per second") f.diskType = cmdFiler.Flag.String("disk", "", "[hdd|ssd|<tag>] hard drive or solid state drive or any tag") f.allowedOrigins = cmdFiler.Flag.String("allowedOrigins", "*", "comma separated list of allowed origins") + f.exposeDirectoryData = cmdFiler.Flag.Bool("exposeDirectoryData", true, "whether to return directory metadata and content in Filer UI") // start s3 on filer filerStartS3 = cmdFiler.Flag.Bool("s3", false, "whether to start S3 gateway") |
