hedgedoc/dev-reverse-proxy
Tilman Vatteroth 92a77d0489 fix: rename directory, fix script and correct README.md
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-09-25 17:00:10 +02:00
..
.gitignore fix: rename directory, fix script and correct README.md 2022-09-25 17:00:10 +02:00
Caddyfile fix: rename directory, fix script and correct README.md 2022-09-25 17:00:10 +02:00
README.md fix: rename directory, fix script and correct README.md 2022-09-25 17:00:10 +02:00
run-caddy.sh fix: rename directory, fix script and correct README.md 2022-09-25 17:00:10 +02:00

To use backend and frontend together you need a reverse proxy that combines both services under one URL origin.

We provide a ready to use config for caddy. Make sure that the backend is running on port 3000 with the env var HD_DOMAIN set to http://localhost:8080 and the frontend is running on port 3001 with the env var HD_EDITOR_BASE_URL set to http://localhost:8080/.

You can either use the script run-caddy.sh in this directory or download a caddy binary from caddy and start it using caddy run.