mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-01 04:52:17 -05:00
2225057ebe
This makes the Swagger UI route more consistent to the real API routes. Especially, the "private" prefix of the private API docs was irritating. Additionally, this commit adds a rule to the Caddyfile for proxying the API docs to the backend. Signed-off-by: Erik Michelson <github@erik.michelson.eu>
18 lines
420 B
Caddyfile
18 lines
420 B
Caddyfile
#
|
|
# SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
#
|
|
|
|
:8080
|
|
|
|
log {
|
|
output stdout
|
|
}
|
|
|
|
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
|