Skip to content

Commit 4f720aa

Browse files
committed
fix(core): correct hedgedoc public origin
1 parent ceb236a commit 4f720aa

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

infra/docker/compose.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,11 @@ services:
219219
environment:
220220
<<: *lab-env
221221
CMD_DB_URL: postgres://${HEDGEDOC_POSTGRES_USER}:${HEDGEDOC_POSTGRES_PASSWORD}@hedgedoc-db:5432/${HEDGEDOC_POSTGRES_DATABASE}
222-
CMD_DOMAIN: ${LAB_PUBLIC_HOST}
222+
# HedgeDoc 1.x builds absolute asset URLs from CMD_DOMAIN and mishandles proxy ports.
223+
CMD_DOMAIN: ${LAB_PUBLIC_HOST}:${HEDGEDOC_HTTPS_PORT}
223224
CMD_PROTOCOL_USESSL: "true"
224-
CMD_URL_ADDPORT: "true"
225+
CMD_URL_ADDPORT: "false"
226+
CMD_ALLOW_ORIGIN: ${LAB_PUBLIC_HOST}:${HEDGEDOC_HTTPS_PORT},${LAB_GATEWAY_IP}:${HEDGEDOC_HTTPS_PORT}
225227
CMD_ALLOW_ANONYMOUS: "false"
226228
CMD_EMAIL: "true"
227229
CMD_ALLOW_EMAIL_REGISTER: "true"

0 commit comments

Comments
 (0)