#!/bin/sh set -xeo pipefail REDIRECT_URLS=$(cat /etc/hydra/clients.d/*.json | jq -n --stream 'fromstream(inputs) | (.redirect_uris + .post_logout_redirect_uris)' | jq -r '.[]') # À NE PAS FAIRE EN PRODUCTION ! # Voir https://www.ory.sh/docs/hydra/debug#first-aid export OAUTH2_EXPOSE_INTERNAL_ERRORS=true /usr/bin/hydra \ serve \ -c /etc/hydra/config.yml \ --dangerous-force-http \ --dangerous-allow-insecure-redirect-urls "$REDIRECT_URLS" \ all