From 06369892fd5b82786cc703250192c626981eb503 Mon Sep 17 00:00:00 2001 From: joshdentremont Date: Wed, 25 Sep 2024 14:27:12 -0300 Subject: [PATCH] added instructions to disable fedora (#2350) * added instructions to disable fedora * Update docs/installation/docker/site-template/docker-modifications.md Co-authored-by: Adam <607975+adam-vessey@users.noreply.github.com> * Update docs/installation/docker/site-template/docker-modifications.md Co-authored-by: Adam <607975+adam-vessey@users.noreply.github.com> * Update docs/installation/docker/site-template/docker-modifications.md Co-authored-by: Adam <607975+adam-vessey@users.noreply.github.com> * Update docs/installation/docker/site-template/docker-modifications.md Co-authored-by: Adam <607975+adam-vessey@users.noreply.github.com> * Update docs/installation/docker/site-template/docker-modifications.md Co-authored-by: Adam <607975+adam-vessey@users.noreply.github.com> * Update docs/installation/docker/site-template/docker-modifications.md Co-authored-by: Adam <607975+adam-vessey@users.noreply.github.com> --------- Co-authored-by: Adam <607975+adam-vessey@users.noreply.github.com> --- .../site-template/docker-modifications.md | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/installation/docker/site-template/docker-modifications.md b/docs/installation/docker/site-template/docker-modifications.md index 6caa0609f..d9dcd8ef9 100644 --- a/docs/installation/docker/site-template/docker-modifications.md +++ b/docs/installation/docker/site-template/docker-modifications.md @@ -46,3 +46,24 @@ If you are removing a container which is referenced by Drupal, ensure that you u After doing `docker compose down`, run `docker compose up -d --remove-orphans` to remove the containers you removed from the docker-compose.yml file. +## Hiding Fedora From the Public + +By default, your Fedora repo will be available to the public at `fcrepo.${DOMAIN}`. If you do not want to expose your Fedora, you can stop this URL from working by disabling it via Traefik in your `docker-compose.yml`. To do this, you need to add the `traefik-disable` label to `fcrepo-prod` like this, + +```yaml + fcrepo-prod: + <<: [*prod, *fcrepo] + environment: + <<: [*fcrepo-environment] + FCREPO_ALLOW_EXTERNAL_DRUPAL: "https://${DOMAIN}/" + labels: + <<: [*traefik-disable, *fcrepo-labels] +``` + +If you have done this, you can also remove the DNS records that point this URL to your production server. + +Finally, you will have to change the URL that Drupal uses to access the Fedora repo. This can be found in your `docker-compose.yml` in the `environment` section for `drupal-prod`, and should be changed to: + +```yaml +DRUPAL_DEFAULT_FCREPO_URL: "http://fcrepo:8080/fcrepo/rest/" +```