From af0b34efa16091c9a170c4012c15d9007f4db9c1 Mon Sep 17 00:00:00 2001 From: Tamotsu Takahashi Date: Sun, 16 Oct 2022 17:33:23 +0900 Subject: [PATCH] Update HD_DATABASE_* Fix leftovers from #2278 cd5256da7fa01d6fa88be0dc509f946029caa053 Signed-off-by: Tamotsu Takahashi --- .env.example | 4 ++-- docker/README.md | 2 +- docs/content/config/index.md | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index b1948f7aa..193e6099e 100644 --- a/.env.example +++ b/.env.example @@ -5,5 +5,5 @@ HD_DOMAIN="http://localhost" HD_MEDIA_BACKEND="filesystem" HD_MEDIA_BACKEND_FILESYSTEM_UPLOAD_PATH="uploads/" -HD_DATABASE_DIALECT="sqlite" -HD_DATABASE_STORAGE="./hedgedoc.sqlite" +HD_DATABASE_TYPE="sqlite" +HD_DATABASE_NAME="./hedgedoc.sqlite" diff --git a/docker/README.md b/docker/README.md index a1e2d44a4..873053756 100644 --- a/docker/README.md +++ b/docker/README.md @@ -21,7 +21,7 @@ To build a production image, run the following command *from the root of the rep When you run the image, you need to provide environment variables to configure HedgeDoc. See [the config docs](../docs/content/config/index.md) for more information. This example starts HedgeDoc on localhost, with non-persistent storage: -`docker run -e HD_DOMAIN=http://localhost -e HD_MEDIA_BACKEND=filesystem -e HD_MEDIA_BACKEND_FILESYSTEM_UPLOAD_PATH=uploads -e HD_DATABASE_DIALECT=sqlite -e HD_DATABASE_STORAGE=hedgedoc.sqlite -e HD_SESSION_SECRET=foobar -e HD_LOGLEVEL=debug -p 3000:3000 hedgedoc-prod` +`docker run -e HD_DOMAIN=http://localhost -e HD_MEDIA_BACKEND=filesystem -e HD_MEDIA_BACKEND_FILESYSTEM_UPLOAD_PATH=uploads -e HD_DATABASE_TYPE=sqlite -e HD_DATABASE_NAME=hedgedoc.sqlite -e HD_SESSION_SECRET=foobar -e HD_LOGLEVEL=debug -p 3000:3000 hedgedoc-prod` ## Build a development image diff --git a/docs/content/config/index.md b/docs/content/config/index.md index 93c98c097..ee1b06d1b 100644 --- a/docs/content/config/index.md +++ b/docs/content/config/index.md @@ -8,8 +8,8 @@ The `.env` file should be placed in the root of the project and contains key-val HD_DOMAIN="http://localhost" HD_MEDIA_BACKEND="filesystem" HD_MEDIA_BACKEND_FILESYSTEM_UPLOAD_PATH="uploads/" -HD_DATABASE_DIALECT="sqlite" -HD_DATABASE_STORAGE="./hedgedoc.sqlite" +HD_DATABASE_TYPE="sqlite" +HD_DATABASE_NAME="./hedgedoc.sqlite" ``` We also provide an `.env.example` file containing a minimal configuration in the root of the project. This should help you to write your own configuration.