apt install -y wget ca-certificates useradd authelia -r -s /bin/false -m -d /usr/lib/authelia/ wget -qO - https://github.com/authelia/authelia/releases/download/v4.33.0/authelia-v4.33.0-linux-amd64.tar.gz | tar -xzC /tmp/ mv /tmp/authelia-linux-amd64 /usr/lib/authelia/authelia mkdir /etc/authelia/ nano /etc/authelia/configuration.yml chown authelia:authelia /etc/authelia/configuration.yml cat << EOF > /etc/systemd/system/authelia.service [Unit] Description=Authelia authentication and authorization server After=multi-user.target [Service] User=authelia Group=authelia ExecStart=/usr/lib/authelia/authelia --config /etc/authelia/configuration.yml SyslogIdentifier=authelia [Install] WantedBy=multi-user.target EOF systemctl start authelia systemctl enable authelia