Automated install for Authelia running in a container e.g. on Proxmox
You can use this repository in order to run an automated installation of Authelia into e.g. a Proxmox Container. If you want to run it in Proxmox, do the following:
- Create a privileged container
- Give it 2 GB of RAM, 2 Cores, 8 GB of Disk (might be oversized)
The container needs to be privileged because it needs the /dev/random
and/or /dev/urandom
devices.
In order to install, open a shell on th container and type (as root)
wget https://raw.githubusercontent.com/onemarcfifty/authelia-proxmox-SSO/main/deploy_authelia.sh ; bash ./deploy_authelia.sh
In order to edit the config files, you could use nano or vi. However, editing yaml Files in those editors is quite a challenge because you need to take care of proper indentation etc. Another possibility is to use WinSCP or FileZilla and connect over ssh or sftp to the container, and then edit with your favorite editor (e.g. Visual Studio).
To enable root password login over ssh in order to edit the files type
sed -i s/^\#PermitRootLogin\ prohibit-password$/PermitRootLogin\ yes/ /etc/ssh/sshd_config
systemctl restart ssh
You can later change this back by typing
sed -i s/^PermitRootLogin\ yes/PermitRootLogin\ prohibit-password/ /etc/ssh/sshd_config
systemctl restart ssh
The necessary changes to the config files and how to implement SSO are outlined in This video. In the video we implement SSO for
- Nextcloud
- Proxmox
- Portainer
- Gitea
The Authelia Documentation shows how to integrate OpenID Connect (OIDC) with various software platforms