mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-12 22:26:08 -04:00
refactor: use separate env vars for frontend/backend port
As we moved to a combined .env file for simplicity, frontend and backend need to be configured with separate variables. Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
55f3bd9b60
commit
f7f052fca1
6 changed files with 65 additions and 54 deletions
|
@ -4,7 +4,7 @@
|
|||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
#
|
||||
|
||||
:8080
|
||||
{$HD_BASE_URL}
|
||||
|
||||
log {
|
||||
output stdout
|
||||
|
@ -12,9 +12,9 @@ log {
|
|||
format console
|
||||
}
|
||||
|
||||
reverse_proxy /realtime http://127.0.0.1:3000
|
||||
reverse_proxy /api/* http://127.0.0.1:3000
|
||||
reverse_proxy /public/* http://127.0.0.1:3000
|
||||
reverse_proxy /uploads/* http://127.0.0.1:3000
|
||||
reverse_proxy /apidoc/* http://127.0.0.1:3000
|
||||
reverse_proxy /* http://127.0.0.1:3001
|
||||
reverse_proxy /realtime http://127.0.0.1:{$HD_BACKEND_PORT:3000}
|
||||
reverse_proxy /api/* http://127.0.0.1:{$HD_BACKEND_PORT:3000}
|
||||
reverse_proxy /public/* http://127.0.0.1:{$HD_BACKEND_PORT:3000}
|
||||
reverse_proxy /uploads/* http://127.0.0.1:{$HD_BACKEND_PORT:3000}
|
||||
reverse_proxy /apidoc/* http://127.0.0.1:{$HD_BACKEND_PORT:3000}
|
||||
reverse_proxy /* http://127.0.0.1:{$HD_FRONTEND_PORT:3001}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue