mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-30 17:00:57 -06:00
Add Storage Driver Config to flaex
This commit is contained in:
@@ -18,6 +18,19 @@ geekdocFilePath: configuration.md
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
{{ end }}
|
||||
{{- define "option"}}
|
||||
{{- $options := first . }}
|
||||
{{- $oName := last . }}
|
||||
{{- range $o := $options }}{{ with (list $o $oName) -}}
|
||||
{{- $o := first . }}
|
||||
{{- if eq $o.FnName (last .) -}}
|
||||
--{{ $o.Name }} | ${{ index $o.Env 0 }}
|
||||
: {{ $o.Usage }}. {{- if $o.Default }} Default: `{{ $o.Default }}`.{{ end }}
|
||||
|
||||
{{ end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
|
||||
{{`{{< toc >}}`}}
|
||||
|
||||
@@ -76,3 +89,27 @@ Usage: `storage {{ $c.Name }} [command options] [arguments...]`
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
## Config for the different Storage Drivers
|
||||
|
||||
You can set different storage drivers for the Storage Providers. Please check the storage provider configuration.
|
||||
|
||||
Example: Set the home Storage Provider to `ocis`
|
||||
|
||||
`STORAGE_STORAGE_HOME_DRIVER=ocis`
|
||||
`STORAGE_STORAGE_HOME_DATA_DRIVER=ocis`
|
||||
|
||||
### Local Driver
|
||||
|
||||
{{ template "option" (list .Options "DriverLocalWithConfig") -}}
|
||||
|
||||
### Eos Driver
|
||||
|
||||
{{ template "option" (list .Options "DriverEOSWithConfig") -}}
|
||||
|
||||
### owCloud Driver
|
||||
|
||||
{{ template "option" (list .Options "DriverOwnCloudWithConfig") -}}
|
||||
|
||||
### Ocis Driver
|
||||
|
||||
{{ template "option" (list .Options "DriverOCISWithConfig") -}}
|
||||
|
||||
Reference in New Issue
Block a user