mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-03 23:26:58 +02:00
Update to 2024-09-26 12:00
This commit is contained in:
22
roles/nomad/templates/jwks-proxy.service.j2
Normal file
22
roles/nomad/templates/jwks-proxy.service.j2
Normal file
@@ -0,0 +1,22 @@
|
||||
[Unit]
|
||||
Description=Nomad JWKS proxy
|
||||
After=syslog.target network-online.target remote-fs.target nss-lookup.target nomad.service
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User={{ nomad_user }}
|
||||
Group={{ nomad_user }}
|
||||
PIDFile=/run/nomad/nomad-jwks-proxy.pid
|
||||
ExecStartPre=/sbin/nginx -t -c {{ nomad_root_dir }}/jwks-proxy/nginx.conf -e /dev/null
|
||||
ExecStartPre=/bin/rm -f /run/nomad/nomad-jwks-proxy.pid
|
||||
ExecStart=/sbin/nginx -c {{ nomad_root_dir }}/jwks-proxy/nginx.conf -g "daemon off;" -e /dev/null
|
||||
ExecReload=/bin/kill -s HUP $MAINPID
|
||||
ExecStop=/bin/kill -s QUIT $MAINPID
|
||||
PrivateTmp=true
|
||||
Restart=on-failure
|
||||
StartLimitInterval=0
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user