Jan Dittberner
f0d279789a
- run migrations before start - register systemd unit - start service - define localhost as default listening address
13 lines
352 B
Django/Jinja
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
|