diff --git a/hypercube/Dockerfile b/hypercube/Dockerfile index f7fca306..a72a6694 100644 --- a/hypercube/Dockerfile +++ b/hypercube/Dockerfile @@ -29,7 +29,8 @@ RUN --mount=type=cache,id=hypercube-apk,sharing=locked,from=cache,target=/var/ca addgroup nginx jwt && \ cleanup.sh -ENV HYPERCUBE_LOG_LEVEL=info +ENV HYPERCUBE_FCREPO_URL=fcrepo/fcrepo/rest \ + HYPERCUBE_LOG_LEVEL=info COPY --from=crayfish /etc/nginx/http.d/default.conf /etc/nginx/http.d/default.conf COPY --from=crayfish --chown=nginx:nginx /var/www /var/www diff --git a/hypercube/README.md b/hypercube/README.md index 0cf0e949..85fea2c0 100644 --- a/hypercube/README.md +++ b/hypercube/README.md @@ -12,6 +12,7 @@ additional settings, volumes, ports, etc. | Environment Variable | Confd Key | Default | Description | | :------------------- | :-------------------- | :----------------- | :------------------------------------------------------------------------------------------------ | +| HYPERCUBE_FCREPO_URL | /hypercube/fcrepo/url | fcrepo/fcrepo/rest | Fcrepo Rest API URL | | HYPERCUBE_LOG_LEVEL | /hypercube/log/level | debug | Log level. Possible Values: debug, info, notice, warning, error, critical, alert, emergency, none | [Hypercube]: https://github.com/Islandora/Crayfish/tree/main/Hypercube diff --git a/hypercube/rootfs/etc/confd/templates/config.yaml.tmpl b/hypercube/rootfs/etc/confd/templates/config.yaml.tmpl index 6c2231c0..1bb12fc2 100644 --- a/hypercube/rootfs/etc/confd/templates/config.yaml.tmpl +++ b/hypercube/rootfs/etc/confd/templates/config.yaml.tmpl @@ -3,6 +3,8 @@ hypercube: # path to the convert executable tesseract_executable: tesseract pdftotext_executable: pdftotext +fedora_resource: + base_url: {{ getenv "HYPERCUBE_FCREPO_URL" }} log: # Valid log levels are: # debug, info, notice, warning, error, critical, alert, emergency, none