Skip to content

Commit

Permalink
commit 6290975
Browse files Browse the repository at this point in the history
Merge: bdbd70d f526326
Author: Martin <github@diemattels.at>
Date:   Tue Feb 28 13:09:31 2023 +0100

    Merge pull request #5680 from owncloud/add_global_envvar

    Add a global variable for the metadata backend
  • Loading branch information
mmattel committed Feb 28, 2023
1 parent e55fa2e commit 22f4bee
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 11 deletions.
29 changes: 22 additions & 7 deletions services/_includes/adoc/global_configvars.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ a| [subs=-attributes]
++false ++

a| [subs=-attributes]
Set this to true if the defined 'id' attribute for groups is of the 'OCTETSTRING' syntax. This is e.g. required when using the 'objectGUID' attribute of Active Directory for the group IDs.
Set this to true if the defined 'id' attribute for groups is of the 'OCTETSTRING' syntax. This is e.g. required when using the 'objectGUID' attribute of Active Directory for the group ID's.

a| `LDAP_GROUP_SCHEMA_MAIL`

Expand Down Expand Up @@ -401,7 +401,7 @@ a| [subs=-attributes]
++false ++

a| [subs=-attributes]
Set this to true if the defined 'id' attribute for users is of the 'OCTETSTRING' syntax. This is e.g. required when using the 'objectGUID' attribute of Active Directory for the user IDs.
Set this to true if the defined 'id' attribute for users is of the 'OCTETSTRING' syntax. This is e.g. required when using the 'objectGUID' attribute of Active Directory for the user ID's.

a| `LDAP_USER_SCHEMA_MAIL`

Expand Down Expand Up @@ -471,7 +471,7 @@ a| [subs=-attributes]
++ ++

a| [subs=-attributes]
ID of the user that should receive admin privileges. Consider that the UUID can be encoded in some LDAP deployment configurations like in .ldif files. These need to be decoded beforehand.
ID of the user who collects all necessary information for deletion.

a| `OCIS_CACHE_STORE_ADDRESS`

Expand Down Expand Up @@ -574,7 +574,7 @@ a| [subs=-attributes]
++[]string ++

a| [subs=-attributes]
++[GET POST PUT PATCH DELETE OPTIONS] ++
++[GET] ++

a| [subs=-attributes]
A comma-separated list of allowed CORS methods. See following chapter for more details: *Access-Control-Request-Method* at \https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Request-Method
Expand All @@ -598,6 +598,21 @@ a| [subs=-attributes]
a| [subs=-attributes]
A comma-separated list of allowed CORS origins. See following chapter for more details: *Access-Control-Allow-Origin* at \https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin

a| `OCIS_DECOMPOSEDFS_METADATA_BACKEND`

a| [subs=attributes+]
* xref:{s-path}/storage-system.adoc[storage-system] +
* xref:{s-path}/storage-users.adoc[storage-users] +

a| [subs=-attributes]
++string ++

a| [subs=-attributes]
++xattrs ++

a| [subs=-attributes]
The backend to use for storing metadata. Supported values are 'xattrs' and 'ini'. The setting 'xattrs' uses extended attributes to store file metadata while 'ini' uses a dedicated file to store file metadata. Defaults to 'xattrs'.

a| `OCIS_EVENTS_ENABLE_TLS`

a| [subs=attributes+]
Expand Down Expand Up @@ -1149,7 +1164,7 @@ a| [subs=-attributes]
++https://localhost:9200 ++

a| [subs=-attributes]
The OIDC issuer URL to use.
The identity provider value to set in the userids of the CS3 user objects for users returned by this user provider.

a| `OCIS_SPACES_MAX_QUOTA`

Expand All @@ -1164,7 +1179,7 @@ a| [subs=-attributes]
++0 ++

a| [subs=-attributes]
Set the global max quota value in bytes. A value of 0 equals unlimited. The value is provided via capabilities.
Set a global max quota for spaces in bytes. A value of 0 equals unlimited. If not using the global OCIS_SPACES_MAX_QUOTA, you must define the FRONTEND_MAX_QUOTA in the frontend service.

a| `OCIS_SYSTEM_USER_API_KEY`

Expand Down Expand Up @@ -1202,7 +1217,7 @@ a| [subs=-attributes]
++ ++

a| [subs=-attributes]
ID of the oCIS storage-system system user. Admins need to set the ID for the STORAGE-SYSTEM system user in this config option which is then used to reference the user. Any reasonable long string is possible, preferably this would be an UUIDv4 format.
ID of the oCIS STORAGE-SYSTEM system user. Admins need to set the ID for the STORAGE-SYSTEM system user in this config option which is then used to reference the user. Any reasonable long string is possible, preferably this would be an UUIDv4 format.

a| `OCIS_SYSTEM_USER_IDP`

Expand Down
3 changes: 2 additions & 1 deletion services/_includes/adoc/storage-system_configvars.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ a| [subs=-attributes]
a| [subs=-attributes]
The driver which should be used by the service.

a|`STORAGE_SYSTEM_OCIS_METADATA_BACKEND` +
a|`OCIS_DECOMPOSEDFS_METADATA_BACKEND` +
`STORAGE_SYSTEM_OCIS_METADATA_BACKEND` +

a| [subs=-attributes]
++string ++
Expand Down
3 changes: 2 additions & 1 deletion services/_includes/adoc/storage-users_configvars.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,8 @@ a| [subs=-attributes]
a| [subs=-attributes]
The storage driver which should be used by the service. Defaults to 'ocis', Supported values are: 'ocis', 's3ng' and 'owncloudsql'. The 'ocis' driver stores all data (blob and meta data) in an POSIX compliant volume. The 's3ng' driver stores metadata in a POSIX compliant volume and uploads blobs to the s3 bucket.

a|`STORAGE_USERS_OCIS_METADATA_BACKEND` +
a|`OCIS_DECOMPOSEDFS_METADATA_BACKEND` +
`STORAGE_USERS_OCIS_METADATA_BACKEND` +

a| [subs=-attributes]
++string ++
Expand Down
2 changes: 1 addition & 1 deletion services/_includes/storage-system_configvars.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
| OCIS_SYSTEM_USER_API_KEY | string | | API key for the STORAGE-SYSTEM system user.|
| STORAGE_SYSTEM_SKIP_USER_GROUPS_IN_TOKEN | bool | false | Disables the loading of user's group memberships from the reva access token.|
| STORAGE_SYSTEM_DRIVER | string | ocis | The driver which should be used by the service.|
| STORAGE_SYSTEM_OCIS_METADATA_BACKEND | string | xattrs | The backend to use for storing metadata. Supported values are 'xattrs' and 'ini'. The setting 'xattrs' uses extended attributes to store file metadata while 'ini' uses a dedicated file to store file metadata. Defaults to 'xattrs'.|
| OCIS_DECOMPOSEDFS_METADATA_BACKEND<br/>STORAGE_SYSTEM_OCIS_METADATA_BACKEND | string | xattrs | The backend to use for storing metadata. Supported values are 'xattrs' and 'ini'. The setting 'xattrs' uses extended attributes to store file metadata while 'ini' uses a dedicated file to store file metadata. Defaults to 'xattrs'.|
| STORAGE_SYSTEM_OCIS_ROOT | string | ~/.ocis/storage/metadata | Path for the directory where the STORAGE-SYSTEM service stores it's persistent data. If not definied, the root directory derives from $OCIS_BASE_DATA_PATH:/storage.|
| STORAGE_SYSTEM_OCIS_MAX_ACQUIRE_LOCK_CYCLES | int | 20 | When trying to lock files, ocis will try this amount of times to acquire the lock before failing. After each try it will wait for an increasing amount of time. Values of 0 or below will be ignored and the default value of 20 will be used.|
| STORAGE_SYSTEM_OCIS_LOCK_CYCLE_DURATION_FACTOR | int | 30 | When trying to lock files, ocis will multiply the cycle with this factor and use it as a millisecond timeout. Values of 0 or below will be ignored and the default value of 30 will be used.|
Expand Down
2 changes: 1 addition & 1 deletion services/_includes/storage-users_configvars.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
| OCIS_GRPC_CLIENT_TLS_CACERT | string | | Path/File name for the root CA certificate (in PEM format) used to validate TLS server certificates of the go-micro based grpc services.|
| STORAGE_USERS_SKIP_USER_GROUPS_IN_TOKEN | bool | false | Disables the loading of user's group memberships from the reva access token.|
| STORAGE_USERS_DRIVER | string | ocis | The storage driver which should be used by the service. Defaults to 'ocis', Supported values are: 'ocis', 's3ng' and 'owncloudsql'. The 'ocis' driver stores all data (blob and meta data) in an POSIX compliant volume. The 's3ng' driver stores metadata in a POSIX compliant volume and uploads blobs to the s3 bucket.|
| STORAGE_USERS_OCIS_METADATA_BACKEND | string | xattrs | The backend to use for storing metadata. Supported values are 'xattrs' and 'ini'. The setting 'xattrs' uses extended attributes to store file metadata while 'ini' uses a dedicated file to store file metadata. Defaults to 'xattrs'.|
| OCIS_DECOMPOSEDFS_METADATA_BACKEND<br/>STORAGE_USERS_OCIS_METADATA_BACKEND | string | xattrs | The backend to use for storing metadata. Supported values are 'xattrs' and 'ini'. The setting 'xattrs' uses extended attributes to store file metadata while 'ini' uses a dedicated file to store file metadata. Defaults to 'xattrs'.|
| STORAGE_USERS_OCIS_ROOT | string | ~/.ocis/storage/users | The directory where the filesystem storage will store blobs and metadata. If not definied, the root directory derives from $OCIS_BASE_DATA_PATH:/storage/users.|
| STORAGE_USERS_OCIS_USER_LAYOUT | string | {{.Id.OpaqueId}} | Template string for the user storage layout in the user directory.|
| STORAGE_USERS_PERMISSION_ENDPOINT,STORAGE_USERS_OCIS_PERMISSIONS_ENDPOINT | string | 127.0.0.1:9191 | Endpoint of the permissions service. The endpoints can differ for 'ocis' and 's3ng'.|
Expand Down

0 comments on commit 22f4bee

Please sign in to comment.