orange-manchester-16482
04/12/2024, 4:56 AMchilly-king-10285
04/12/2024, 4:56 AMchilly-king-10285
04/12/2024, 4:57 AM-c path/to/config.yaml
or --config path/to/config.yaml
flag. For example, if you want to use a PostgreSQL database, you can specify the DSN (Data Source Name) in the configuration file like this: yaml dsn: <postgres://hydra:[email> protected]:5432/hydra?sslmode=disable&max_conns=20&max_idle_conns=4
You can also specify the issuer URL in the configuration file: yaml urls: self: issuer: <https://oauth2.example.com>
After changing the configuration, you need to apply the migrations using the hydra migrate sql
command: bash /opt/hydra/bin/hydra -c /opt/hydra/config/hydra.yml migrate sql -y <postgres://hydra:[email> protected]:5432/hydra?sslmode=disable
Please note that the SQL adapter supports PostgreSQL 9.6+, MySQL 5.7+ and SQLite. Older MySQL versions may have issues with Ory Hydra's database schema. For more details, you can refer to the [Ory Hydra documentation](https://www.ory.sh/docs/hydra/self-hosted/deploy-hydra-example#install-ory-hydra).