mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 17:56:30 -05:00
4132833b5d
The API documentation belongs strictly to the API itself. Due to the usage of version-prefixed API endpoints, there is no conflict with existing or future endpoints. The reason behind this is that we already have enough exceptions in the routing (default everything to react-frontend, exceptions for backend) and it is hard to keep it synchronized throughout all relevant places. This came to attention as the dev setup didn't proxy the API docs to the backend. Signed-off-by: Erik Michelson <github@erik.michelson.eu>
14 lines
323 B
Caddyfile
14 lines
323 B
Caddyfile
{$HD_BASE_URL}
|
|
|
|
log {
|
|
output stdout
|
|
level WARN
|
|
format console
|
|
}
|
|
|
|
reverse_proxy /realtime http://backend:3000
|
|
reverse_proxy /api/* http://backend:3000
|
|
reverse_proxy /public/* http://backend:3000
|
|
reverse_proxy /uploads/* http://backend:3000
|
|
reverse_proxy /media/* http://backend:3000
|
|
reverse_proxy /* http://frontend:3001
|