mirror of
https://github.com/opf/openproject-deploy.git
synced 2026-08-19 01:16:15 +00:00
Add hocuspocus.
This commit is contained in:
@@ -1,12 +1,18 @@
|
||||
:80 {
|
||||
reverse_proxy * http://${APP_HOST}:8080 {
|
||||
# The following directives are needed to make the proxy forward explicitly the X-Forwarded-* headers. If unset,
|
||||
# Caddy will reset them. See: https://caddyserver.com/docs/caddyfile/directives/reverse_proxy#defaults
|
||||
# This is needed, if you are using a reverse proxy in front of the compose stack and Caddy is NOT your first
|
||||
# point of contact.
|
||||
# When using Caddy is reachable as a first point of contact, it is highly recommended to configure the server's
|
||||
# global `trusted_proxies` directive. See: https://caddyserver.com/docs/caddyfile/options#trusted-proxies
|
||||
# Reverse proxy for WebSocket connections
|
||||
@hocuspocus {
|
||||
path /hocuspocus*
|
||||
}
|
||||
reverse_proxy @hocuspocus ${HOCUSPOCUS_HOST}:1234 {
|
||||
header_up X-Forwarded-Proto {header.X-Forwarded-Proto}
|
||||
header_up X-Forwarded-For {header.X-Forwarded-For}
|
||||
}
|
||||
|
||||
# Reverse proxy for all other HTTP requests
|
||||
@app {
|
||||
not path /hocuspocus*
|
||||
}
|
||||
reverse_proxy @app ${APP_HOST}:8080 {
|
||||
header_up X-Forwarded-Proto {header.X-Forwarded-Proto}
|
||||
header_up X-Forwarded-For {header.X-Forwarded-For}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user