hedgedoc/docs/content
Erik Michelson e8793271a0 enhancement(caddy): expose :8080 by default, trust private proxies
This commit changes the caddyfile to not directly rely on the
HD_BASE_URL environment variable, but instead default to port 8080 as
used in our package.json scripts and docs.
The caddy domain can optionally be overridden using the CADDY_HOST env
variable.
Furthermore, this change adds a section to trust reverse-proxies in
front of Caddy if they are in a private range IP address network.
Both these changes are required to be able to expose a local development
setup with another domain than localhost to a co-developer. With
this change it works without having Caddy trying to generate TLS
certificates for that domain nor HedgeDoc erroring about a origin
mismatch, that occurs as Caddy doesn't forward specific headers
otherwise.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2024-09-18 17:56:25 +02:00
..
concepts refactor(media): store filenames, use pre-signed s3/azure URLs, UUIDs 2024-09-12 14:49:17 +02:00
faq docs: add faq entry about fork awesome deprecation 2023-10-08 21:12:15 +02:00
files/setup-docker refactor(api-docs): move api docs to /api/doc/ 2024-09-12 14:49:17 +02:00
how-to enhancement(caddy): expose :8080 by default, trust private proxies 2024-09-18 17:56:25 +02:00
images docs: restructure documentation 2023-09-17 21:50:21 +02:00
old docs: restructure documentation 2023-09-17 21:50:21 +02:00
references refactor(media): store filenames, use pre-signed s3/azure URLs, UUIDs 2024-09-12 14:49:17 +02:00
theme/styles refactor: remove dropbox, facebook & twitter login 2023-10-07 13:28:37 +02:00
tutorials enhancement(docs): add info about ports in the setup tutorial 2023-10-13 09:58:33 +02:00
index.md docs: add netlify badge 2023-10-08 19:21:10 +02:00