feat: add ldapauth for nginx

- add service, defaults and script
This commit is contained in:
2024-07-06 17:32:44 +10:00
parent cbded220bb
commit 354e561380
4 changed files with 458 additions and 0 deletions
@@ -0,0 +1,17 @@
[Unit]
Description=LDAP authentication helper for Nginx
After=network.target network-online.target
[Service]
Type=simple
User=<%= @user %>
Group=<%= @group %>
WorkingDirectory=/var/run
EnvironmentFile=<%= @env_path %>
ExecStart=<%= @bin_path %> $URL $BASE $BIND_DN $BIND_PASS $COOKIE $FILTER $REALM
KillMode=process
KillSignal=SIGINT
Restart=on-failure
[Install]
WantedBy=multi-user.target