Skip to content

Commit

Permalink
Remove unnecessary reverse proxy. (#222)
Browse files Browse the repository at this point in the history
* Remove unnecessary reverse proxy.

* Fix Matomo credential generation.

Co-authored-by: Nigel Banks <[email protected]:w>
  • Loading branch information
nigelgbanks and Nigel Banks authored Apr 11, 2022
1 parent 2b23dbe commit c7e00e3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docker-compose.blazegraph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ services:
default:
labels:
- traefik.enable=${EXPOSE_BLAZEGRAPH:-false}
- traefik.http.services.${COMPOSE_PROJECT_NAME-isle-dc}-blazegraph.loadbalancer.server.port=80
- traefik.http.services.${COMPOSE_PROJECT_NAME-isle-dc}-blazegraph.loadbalancer.server.port=8080
- traefik.http.routers.${COMPOSE_PROJECT_NAME-isle-dc}-blazegraph_http.service=${COMPOSE_PROJECT_NAME-isle-dc}-blazegraph
- traefik.http.routers.${COMPOSE_PROJECT_NAME-isle-dc}-blazegraph_http.entrypoints=blazegraph
deploy:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.cantaloupe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:
- cantaloupe-data:/data
labels:
- traefik.enable=${EXPOSE_CANTALOUPE:-true}
- traefik.http.services.${COMPOSE_PROJECT_NAME-isle-dc}-cantaloupe.loadbalancer.server.port=80
- traefik.http.services.${COMPOSE_PROJECT_NAME-isle-dc}-cantaloupe.loadbalancer.server.port=8080
- traefik.http.middlewares.cantaloupe-redirectscheme.redirectscheme.scheme=https
- traefik.http.middlewares.cantaloupe-redirectscheme.redirectscheme.permanent=true
- traefik.http.routers.${COMPOSE_PROJECT_NAME-isle-dc}-cantaloupe_http.service=${COMPOSE_PROJECT_NAME-isle-dc}-cantaloupe
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.fcrepo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ services:
labels:
# Do not expose in production.
- traefik.enable=${EXPOSE_FEDORA:-false}
- traefik.http.services.${COMPOSE_PROJECT_NAME-isle-dc}-fcrepo.loadbalancer.server.port=80
- traefik.http.services.${COMPOSE_PROJECT_NAME-isle-dc}-fcrepo.loadbalancer.server.port=8080
- traefik.http.routers.${COMPOSE_PROJECT_NAME-isle-dc}-fcrepo_http.service=${COMPOSE_PROJECT_NAME-isle-dc}-fcrepo
- traefik.http.routers.${COMPOSE_PROJECT_NAME-isle-dc}-fcrepo_http.entrypoints=fcrepo
2 changes: 1 addition & 1 deletion docker-compose.fcrepo6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ services:
labels:
# Do not expose in production.
- traefik.enable=${EXPOSE_FEDORA:-false}
- traefik.http.services.${COMPOSE_PROJECT_NAME-isle-dc}-fcrepo.loadbalancer.server.port=80
- traefik.http.services.${COMPOSE_PROJECT_NAME-isle-dc}-fcrepo.loadbalancer.server.port=8080
- traefik.http.routers.${COMPOSE_PROJECT_NAME-isle-dc}-fcrepo_http.service=${COMPOSE_PROJECT_NAME-isle-dc}-fcrepo
- traefik.http.routers.${COMPOSE_PROJECT_NAME-isle-dc}-fcrepo_http.entrypoints=fcrepo
deploy:
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-secrets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function generate_matomo_password() {
# the form, and the hashed version which is written into the database.
random_secret 'A-Za-z0-9' 48 MATOMO_USER_PASS_NON_HASHED
MATOMO_USER_PASS=$(cat /secrets/live/MATOMO_USER_PASS_NON_HASHED)
php -r "echo password_hash(md5('${MATOMO_USER_PASS}'), PASSWORD_DEFAULT) . '\n';" >/secrets/live/MATOMO_USER_PASS
php -r "echo password_hash(md5('${MATOMO_USER_PASS}'), PASSWORD_DEFAULT);" >/secrets/live/MATOMO_USER_PASS
}

function random_secret() {
Expand Down

0 comments on commit c7e00e3

Please sign in to comment.