From 12950cc030ee0f09f221d90ae78f1d5775a95eff Mon Sep 17 00:00:00 2001 From: Meng Sen Date: Wed, 15 Jan 2025 13:41:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=83=E5=BA=94=E7=94=A8=20BookStac?= =?UTF-8?q?k?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Meng Sen --- apps/bookstack/README.md | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/apps/bookstack/README.md b/apps/bookstack/README.md index 2a98a6da..ac20824e 100644 --- a/apps/bookstack/README.md +++ b/apps/bookstack/README.md @@ -88,20 +88,14 @@ docker exec -it php /app/www/artisan bookstack:update-url ${OLD_URL} ### 应用密钥 -> 必须是 32 个字符的随机字符串,用于加密会话数据。 +> 必须是 32 个字符的随机字符串,并使用 Base64编码,用于加密会话数据。 > > 如果提供错误的密钥,将导致无法正常使用应用程序。 +> +> 示例值:`base64:W/NpvTrf6PjZDS7Np+sjOYGQwUg3OoxrbXPVtwWYryw=` -方法一 - -```bash -php artisan key:generate -``` - -方法二 - -```bash -openssl rand -base64 32 +```sh +docker run -it --rm --entrypoint /bin/bash lscr.io/linuxserver/bookstack:latest appkey ``` ### 数据库地址