Compare commits

..
1 Commits
Author SHA1 Message Date
notplants 86ebdd0074 bump to 0.3.2+v5.1.0
Wire up the file-upload conversion path that CONVERSION_UPLOAD_ENABLED
exposes:

- Add Y_PROVIDER_API_BASE_URL and Y_PROVIDER_API_KEY_FILE to common-env
  so the backend can call y-provider (used for .md→Yjs).
- Add DOCSPEC_API_URL to common-env and a new docspec service
  (ghcr.io/docspecio/api:3.0.1) for the .docx→BlockNote→Yjs path.

These were missing because they were dormant while
CONVERSION_UPLOAD_ENABLED defaulted to false upstream. Now that the
recipe defaults it to true (0.3.1+v5.1.0), they're required for the
upload endpoint to function.

Upstream reference:
- https://github.com/suitenumerique/docs/blob/v5.1.0/compose.yml (docspec service)
- https://github.com/suitenumerique/docs/blob/v5.1.0/env.d/development/common (DOCSPEC_API_URL, Y_PROVIDER_API_BASE_URL)
- https://github.com/docspecio/api (DocSpec source)
2026-05-18 18:47:55 +00:00
+3 -3
View File
@@ -208,9 +208,9 @@ services:
networks:
- backend
healthcheck:
# /conversion only accepts POST; any HTTP response (e.g. 404/405) means the server is up.
# wget exit 4 = network error (server down); anything else = server responded.
test: ["CMD-SHELL", "wget -qO /dev/null http://localhost:4000/conversion 2>/dev/null; test $$? -ne 4"]
# /health is a proper GET endpoint returning 200 "Healthy."
# Use 127.0.0.1: the Elixir app binds IPv4 only, "localhost" resolves to ::1 first and fails.
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:4000/health"]
interval: 15s
timeout: 5s
retries: 3