Skip to content

Commit

Permalink
Forward auth to coverpage service to get unpublished node JSON exports (
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall authored Nov 19, 2024
1 parent 515bb87 commit 49b783b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/coverpage/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM ${DOCKER_REPOSITORY}/scyllaridae-pandoc:${TAG}

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
curl=8.5.0-2ubuntu10.4 \
curl=8.5.0-2ubuntu10.5 \
ghostscript=10.02.1~dfsg1-0ubuntu7.4 \
jq=1.7.1-3build1 \
&& rm -rf /var/lib/apt/lists/*
Expand Down
2 changes: 1 addition & 1 deletion examples/coverpage/cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ EXISTING_PDF="$TMP_DIR/existing.pdf"
cat > "${EXISTING_PDF}"

# get the node JSON export
curl -L -s -o "$TMP_DIR/node.json" "${NODE_JSON_URL}?_format=json"
curl -L -s -o "$TMP_DIR/node.json" -H "Authorization: $SCYLLARIDAE_AUTH" "${NODE_JSON_URL}?_format=json"
NODE_JSON=$(cat "$TMP_DIR/node.json")

# extract the title and citation from the node JSON
Expand Down
1 change: 1 addition & 0 deletions examples/coverpage/scyllaridae.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
allowedMimeTypes:
- "application/pdf"
forwardAuth: true
cmdByMimeType:
default:
cmd: "/app/cmd.sh"
Expand Down

0 comments on commit 49b783b

Please sign in to comment.