From 6e57198af6a661804c38f8d4619c28d70af8e623 Mon Sep 17 00:00:00 2001 From: hippi345 <13539685+hippi345@users.noreply.github.com> Date: Tue, 6 Oct 2026 20:57:51 +0000 Subject: [PATCH] docs: use full protojson enum names for storage types STORAGE_TYPE_S3, STORAGE_TYPE_DATABASE, STORAGE_TYPE_LOCAL are the required protojson enum names for storages[].type. The short names (S3, DATABASE, LOCAL) fail startup with an invalid enum value error. Fixes usememos/memos#6407 --- content/docs/configuration/deployment-configuration.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/docs/configuration/deployment-configuration.mdx b/content/docs/configuration/deployment-configuration.mdx index 2480324a..9850981d 100644 --- a/content/docs/configuration/deployment-configuration.mdx +++ b/content/docs/configuration/deployment-configuration.mdx @@ -5,7 +5,7 @@ category: configuration tags: ["configuration", "self-hosting", "docker", "kubernetes"] difficulty: advanced estimatedTime: 15 minutes -lastUpdated: "2026-09-06" +lastUpdated: "2026-10-06" --- Memos 0.30 and later can load selected configuration from JSON files mounted under `/etc/secrets`. Use this when settings such as SSO, storage credentials, or registration policy should be controlled by Docker Compose, Kubernetes, GitOps, or a secret manager instead of the admin UI. @@ -164,7 +164,7 @@ Use `memos-instance-setting-general.json` with `key: "GENERAL"`. The complete fo ### Storage -For 0.31, use named entries in `storages` and select one with `defaultStorageId`. Types are `DATABASE`, `LOCAL`, and `S3`. Each entry has a stable ID; existing attachments continue to use the configuration identified at upload time. +For 0.31, use named entries in `storages` and select one with `defaultStorageId`. Types are `STORAGE_TYPE_DATABASE`, `STORAGE_TYPE_LOCAL`, and `STORAGE_TYPE_S3`. Each entry has a stable ID; existing attachments continue to use the configuration identified at upload time. ```json { @@ -177,7 +177,7 @@ For 0.31, use named entries in `storages` and select one with `defaultStorageId` { "id": "team-assets", "name": "Team assets", - "type": "S3", + "type": "STORAGE_TYPE_S3", "s3Config": { "accessKeyId": "access-key", "accessKeySecret": "secret-key",