Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel

# install -m 755 udmg-auth-proxy -server /usr/local/bin

Configuration for LDAP Authentication

...

Panel


[Unit]
Description=UDMG Server

[Service]
Type=simple
User=udmg
Group=udmg
WorkingDirectory=/home/udmg
ExecStart=/bin/sh -c '/usr/local/udmg-server server -c /etc/udmg/udmg-server/server.ini' Restart=on-failure  [Install] WantedBy=multi-user.target


...

Panel

# vi /etc/systemd/system/udmg-auth-proxy-server.service


Panel

[Unit]
Description=UDMG Auth Proxy server

[Service]
Type=simple
User=udmg
Group=udmg
WorkingDirectory=/home/udmg
Environment="UDMG_AUTH_PROXY_CONFIG=/etc/udmg/auth_proxy/config.toml"
ExecStart=/bin/sh -c 'exec /usr/local/bin/udmg-auth-proxy-server'
Restart=on-failure

[Install]
WantedBy=multi-user.target

...

Panel

# systemctl enable udmg-auth-proxy-server.service
Created symlink /etc/systemd/system/multi-user.target.wants/udmg-auth-proxy-server.service → /etc/systemd/system/udmg-auth-proxy-server.service.

  • Start the service and check the status:
Panel

# systemctl start udmg-auth-proxy-server
# systemctl status udmg-auth-proxy-server
● mft_auth_proxy.service - UDMG Auth Proxy server
Loaded: loaded ( /etc/systemd/system/udmg-auth-proxy-server.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2022-06-07 16:58:48 -03; 21s ago
Main PID: 25008 (udmg-auth-proxy-server)
Tasks: 3 (limit: 3509)
CPU: 4ms
CGroup: /system.slice/udmg-auth-proxy-server.serviceservice
└─25008 /usr/local/bin/udmg-auth-proxy-server

Make sure that the listen port and network interface is reachable by NGINX Server.

...