mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-04 08:49:59 -04:00
docs: restructure
This commit is contained in:
parent
91ebd519a8
commit
70a6583fe0
69 changed files with 471 additions and 385 deletions
29
docs/content/config/index.md
Normal file
29
docs/content/config/index.md
Normal file
|
@ -0,0 +1,29 @@
|
|||
# Configuration
|
||||
|
||||
HedgeDoc can be configured via environment variables either directly or via an `.env` file.
|
||||
|
||||
## The `.env` file
|
||||
|
||||
The `.env` file should be in the root directory of the HedgeDoc application and
|
||||
contains key-value pairs of environment variables and their corresponding value.
|
||||
In the official Docker container this is `/usr/src/app/.env`
|
||||
This can for example look like this:
|
||||
|
||||
<!-- markdownlint-disable proper-names -->
|
||||
```ini
|
||||
HD_BASE_URL="http://localhost:8080"
|
||||
HD_SESSION_SECRET="change_me_in_production"
|
||||
HD_DATABASE_TYPE="sqlite"
|
||||
HD_DATABASE_NAME="./hedgedoc.sqlite"
|
||||
HD_MEDIA_BACKEND="filesystem"
|
||||
HD_MEDIA_BACKEND_FILESYSTEM_UPLOAD_PATH="uploads/"
|
||||
```
|
||||
<!-- markdownlint-enable proper-names -->
|
||||
|
||||
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.
|
||||
|
||||
!!! warning
|
||||
The minimal configuration provided in `.env.example` is exactly that: minimal.
|
||||
It will let you start HedgeDoc for local development,
|
||||
but it is **not** meant to be used in production without prior changes.
|
Loading…
Add table
Add a link
Reference in a new issue