From 290aa7e89fc6a8f0396bbcb1a04653aed452d5f2 Mon Sep 17 00:00:00 2001 From: Martin Date: Fri, 4 Nov 2022 10:23:00 +0000 Subject: [PATCH] commit 280a48dd26bae516f87897b0c6b5c52e88d48392 Merge: b44b33e9f 7cc347fa0 Author: Martin Date: Fri Nov 4 11:20:48 2022 +0100 Merge pull request #4956 from owncloud/fix_some_frontend_env_descriptions Improve frontend env descriptions --- grpc_apis/ocis/messages/search/v0/grpc.md | 2 +- grpc_apis/ocis/messages/settings/v0/grpc.md | 2 +- grpc_apis/ocis/messages/store/v0/grpc.md | 2 +- grpc_apis/ocis/messages/thumbnails/v0/grpc.md | 2 +- grpc_apis/ocis/services/search/v0/grpc.md | 2 +- grpc_apis/ocis/services/settings/v0/grpc.md | 2 +- grpc_apis/ocis/services/store/v0/grpc.md | 2 +- grpc_apis/ocis/services/thumbnails/v0/grpc.md | 2 +- services/_includes/adoc/frontend_configvars.adoc | 16 ++++++++-------- services/_includes/frontend-config-example.yaml | 2 +- services/_includes/frontend_configvars.md | 12 ++++++------ 11 files changed, 23 insertions(+), 23 deletions(-) diff --git a/grpc_apis/ocis/messages/search/v0/grpc.md b/grpc_apis/ocis/messages/search/v0/grpc.md index 26d2c860a9f..50d425cc602 100644 --- a/grpc_apis/ocis/messages/search/v0/grpc.md +++ b/grpc_apis/ocis/messages/search/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.search.v0" url: /grpc_apis/ocis_messages_search_v0 -date: 2022-11-04T09:40:09Z +date: 2022-11-04T10:22:00Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/messages/settings/v0/grpc.md b/grpc_apis/ocis/messages/settings/v0/grpc.md index d37cb51d3d5..bd01bbab3b8 100644 --- a/grpc_apis/ocis/messages/settings/v0/grpc.md +++ b/grpc_apis/ocis/messages/settings/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.settings.v0" url: /grpc_apis/ocis_messages_settings_v0 -date: 2022-11-04T09:40:09Z +date: 2022-11-04T10:22:00Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/messages/store/v0/grpc.md b/grpc_apis/ocis/messages/store/v0/grpc.md index f9efd1a1c76..9ec7df77288 100644 --- a/grpc_apis/ocis/messages/store/v0/grpc.md +++ b/grpc_apis/ocis/messages/store/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.store.v0" url: /grpc_apis/ocis_messages_store_v0 -date: 2022-11-04T09:40:09Z +date: 2022-11-04T10:22:00Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/messages/thumbnails/v0/grpc.md b/grpc_apis/ocis/messages/thumbnails/v0/grpc.md index 79023a1c199..5cc3e839df0 100644 --- a/grpc_apis/ocis/messages/thumbnails/v0/grpc.md +++ b/grpc_apis/ocis/messages/thumbnails/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.thumbnails.v0" url: /grpc_apis/ocis_messages_thumbnails_v0 -date: 2022-11-04T09:40:09Z +date: 2022-11-04T10:22:00Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/search/v0/grpc.md b/grpc_apis/ocis/services/search/v0/grpc.md index 407d3a380af..a6bae024c4e 100644 --- a/grpc_apis/ocis/services/search/v0/grpc.md +++ b/grpc_apis/ocis/services/search/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.search.v0" url: /grpc_apis/ocis_services_search_v0 -date: 2022-11-04T09:40:09Z +date: 2022-11-04T10:22:00Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/settings/v0/grpc.md b/grpc_apis/ocis/services/settings/v0/grpc.md index 92b77e9c02a..45fc876a52e 100644 --- a/grpc_apis/ocis/services/settings/v0/grpc.md +++ b/grpc_apis/ocis/services/settings/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.settings.v0" url: /grpc_apis/ocis_services_settings_v0 -date: 2022-11-04T09:40:09Z +date: 2022-11-04T10:22:00Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/store/v0/grpc.md b/grpc_apis/ocis/services/store/v0/grpc.md index eb5b34a37c5..fc174a1f261 100644 --- a/grpc_apis/ocis/services/store/v0/grpc.md +++ b/grpc_apis/ocis/services/store/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.store.v0" url: /grpc_apis/ocis_services_store_v0 -date: 2022-11-04T09:40:09Z +date: 2022-11-04T10:22:00Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/thumbnails/v0/grpc.md b/grpc_apis/ocis/services/thumbnails/v0/grpc.md index b2b8c6156ad..c6142547902 100644 --- a/grpc_apis/ocis/services/thumbnails/v0/grpc.md +++ b/grpc_apis/ocis/services/thumbnails/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.thumbnails.v0" url: /grpc_apis/ocis_services_thumbnails_v0 -date: 2022-11-04T09:40:09Z +date: 2022-11-04T10:22:00Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/services/_includes/adoc/frontend_configvars.adoc b/services/_includes/adoc/frontend_configvars.adoc index ed529151c73..3b8c3482920 100644 --- a/services/_includes/adoc/frontend_configvars.adoc +++ b/services/_includes/adoc/frontend_configvars.adoc @@ -187,7 +187,7 @@ a| [subs=-attributes] a| [subs=-attributes] ++ ++ a| [subs=-attributes] -Machine auth API key used to validate internal requests necessary to access resources from other services. +The machine auth API key used to validate internal requests necessary to access resources from other services. |`FRONTEND_SKIP_USER_GROUPS_IN_TOKEN` a| [subs=-attributes] ++bool ++ @@ -294,7 +294,7 @@ a| [subs=-attributes] a| [subs=-attributes] ++1073741824 ++ a| [subs=-attributes] -Max size of the zip archive the archiver can create. +Max size in bytes of the zip archive the archiver can create. |`OCIS_INSECURE` + `FRONTEND_ARCHIVER_INSECURE` a| [subs=-attributes] @@ -344,14 +344,14 @@ a| [subs=-attributes] a| [subs=-attributes] ++0 ++ a| [subs=-attributes] -Max TTL for the resource info cache. 0 disables the cache. +Max TTL in seconds for the resource info cache. 0 disables the cache. |`FRONTEND_OCS_RESOURCE_INFO_CACHE_TYPE` a| [subs=-attributes] ++string ++ a| [subs=-attributes] ++memory ++ a| [subs=-attributes] -Resource info cache type ('memory' or 'redis'). +Resource info cache type. Supported values are 'memory' and 'redis'. |`FRONTEND_OCS_RESOURCE_INFO_CACHE_REDIS_ADDR` a| [subs=-attributes] ++string ++ @@ -386,14 +386,14 @@ a| [subs=-attributes] a| [subs=-attributes] ++[sha1 md5 adler32] ++ a| [subs=-attributes] -Supported checksum types to be announced to the client. You can provide multiple types separated by blank or comma. -|`FRONTEND_CHECKSUMS_PREFERRED_UPLOAD_TYPES` +Define the checksum types that indicate to clients which hashes the server can use to verify upload integrity. You can provide multiple types separated by blank or comma. Supported types are 'sha1', 'md5' and 'adler32'. +|`FRONTEND_CHECKSUMS_PREFERRED_UPLOAD_TYPE` a| [subs=-attributes] ++string ++ a| [subs=-attributes] -++ ++ +++sha1 ++ a| [subs=-attributes] -Preferred checksum types to be announced to the client for uploads (e.g. md5) +The supported checksum type for uploads that indicates to clients supporting multiple hash algorithms which one is preferred by the server. Must be one out of the defined list of SUPPORTED_TYPES. |=== Since Version: `+` added, `-` deprecated diff --git a/services/_includes/frontend-config-example.yaml b/services/_includes/frontend-config-example.yaml index 6c46896434a..eaa97807e2f 100644 --- a/services/_includes/frontend-config-example.yaml +++ b/services/_includes/frontend-config-example.yaml @@ -103,7 +103,7 @@ checksums: - sha1 - md5 - adler32 - preferred_upload_type: "" + preferred_upload_type: sha1 middleware: auth: credentials_by_user_agent: {} diff --git a/services/_includes/frontend_configvars.md b/services/_includes/frontend_configvars.md index fbe0ace3ce5..d4af922005d 100644 --- a/services/_includes/frontend_configvars.md +++ b/services/_includes/frontend_configvars.md @@ -25,7 +25,7 @@ | OCIS_JWT_SECRET
FRONTEND_JWT_SECRET | string | | The secret to mint and validate jwt tokens.| | REVA_GATEWAY | string | 127.0.0.1:9142 | The CS3 gateway endpoint.| | OCIS_GRPC_CLIENT_TLS_MODE | string | | TLS mode for grpc connection to the go-micro based grpc services. Possible values are 'off', 'insecure' and 'on'. 'off': disables transport security for the clients. 'insecure' allows to use transport security, but disables certificate verification (to be used with the autogenerated self-signed certificates). 'on' enables transport security, including server ceritificate verification.| -| OCIS_MACHINE_AUTH_API_KEY
FRONTEND_MACHINE_AUTH_API_KEY | string | | Machine auth API key used to validate internal requests necessary to access resources from other services.| +| OCIS_MACHINE_AUTH_API_KEY
FRONTEND_MACHINE_AUTH_API_KEY | string | | The machine auth API key used to validate internal requests necessary to access resources from other services.| | FRONTEND_SKIP_USER_GROUPS_IN_TOKEN | bool | false | Disables the loading of user's group memberships from the reva access token.| | FRONTEND_ENABLE_FAVORITES | bool | false | Enables the support for favorites in the clients.| | FRONTEND_ENABLE_PROJECT_SPACES | bool | true | Changing this value is NOT supported. Indicates to clients that project spaces are supposed to be made available.| @@ -40,18 +40,18 @@ | OCIS_URL
FRONTEND_PUBLIC_URL | string | https://localhost:9200 | The public facing URL of the oCIS frontend.| | OCIS_INSECURE
FRONTEND_APP_HANDLER_INSECURE | bool | false | Allow insecure connections to the frontend.| | FRONTEND_ARCHIVER_MAX_NUM_FILES | int64 | 10000 | Max number of files that can be packed into an archive.| -| FRONTEND_ARCHIVER_MAX_SIZE | int64 | 1073741824 | Max size of the zip archive the archiver can create.| +| FRONTEND_ARCHIVER_MAX_SIZE | int64 | 1073741824 | Max size in bytes of the zip archive the archiver can create.| | OCIS_INSECURE
FRONTEND_ARCHIVER_INSECURE | bool | false | Allow insecure connections to the archiver.| | FRONTEND_DATA_GATEWAY_PREFIX | string | data | Path prefix for the data gateway.| | FRONTEND_OCS_PREFIX | string | ocs | Path prefix for the OCS service| | FRONTEND_OCS_SHARE_PREFIX | string | /Shares | Path prefix for shares.| | FRONTEND_OCS_HOME_NAMESPACE | string | /users/{{.Id.OpaqueId}} | Homespace namespace identifier.| | FRONTEND_OCS_ADDITIONAL_INFO_ATTRIBUTE | string | {{.Mail}} | Additional information attribute for the user like {{.Mail}}.| -| FRONTEND_OCS_RESOURCE_INFO_CACHE_TTL | int | 0 | Max TTL for the resource info cache. 0 disables the cache.| -| FRONTEND_OCS_RESOURCE_INFO_CACHE_TYPE | string | memory | Resource info cache type ('memory' or 'redis').| +| FRONTEND_OCS_RESOURCE_INFO_CACHE_TTL | int | 0 | Max TTL in seconds for the resource info cache. 0 disables the cache.| +| FRONTEND_OCS_RESOURCE_INFO_CACHE_TYPE | string | memory | Resource info cache type. Supported values are 'memory' and 'redis'.| | FRONTEND_OCS_RESOURCE_INFO_CACHE_REDIS_ADDR | string | | Redis service address| | FRONTEND_OCS_RESOURCE_INFO_CACHE_REDIS_USERNAME | string | | Redis username| | FRONTEND_OCS_RESOURCE_INFO_CACHE_REDIS_PASSWORD | string | | Redis password| | FRONTEND_OCS_ENABLE_DENIALS | bool | false | EXPERIMENTAL: enable the feature to deny access on folders.| -| FRONTEND_CHECKSUMS_SUPPORTED_TYPES | []string | [sha1 md5 adler32] | Supported checksum types to be announced to the client. You can provide multiple types separated by blank or comma.| -| FRONTEND_CHECKSUMS_PREFERRED_UPLOAD_TYPES | string | | Preferred checksum types to be announced to the client for uploads (e.g. md5)| \ No newline at end of file +| FRONTEND_CHECKSUMS_SUPPORTED_TYPES | []string | [sha1 md5 adler32] | Define the checksum types that indicate to clients which hashes the server can use to verify upload integrity. You can provide multiple types separated by blank or comma. Supported types are 'sha1', 'md5' and 'adler32'.| +| FRONTEND_CHECKSUMS_PREFERRED_UPLOAD_TYPE | string | sha1 | The supported checksum type for uploads that indicates to clients supporting multiple hash algorithms which one is preferred by the server. Must be one out of the defined list of SUPPORTED_TYPES.| \ No newline at end of file