Update to 2024-09-26 12:00

This commit is contained in:
Daniel Berteaud
2024-09-26 12:00:17 +02:00
parent 73b3ff3424
commit 7abdfbe1e8
10 changed files with 156 additions and 16 deletions

View 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