oidc-parent/deployment/roles/hydra_server/templates/hydra.service.j2
Jan Dittberner f0d279789a Setup Hydra systemd service
- run migrations before start
- register systemd unit
- start service
- define localhost as default listening address
2022-08-16 16:22:36 +02:00

13 lines
352 B
Django/Jinja

[Unit]
Description=ORY Hydra OAuth2/OpenID Connect API server
After=network.target
Documentation=https://www.ory.sh/docs/hydra/
[Service]
ExecStart={{ hydra_home }}/bin/hydra serve all --config "{{ hydra_home }}/etc/hydra.yml"
WorkingDirectory={{ hydra_home }}
User={{ hydra_os_user }}
Group={{ hydra_os_group }}
[Install]
WantedBy=multi-user.target