heyer.systems Open Source

Authelia

Single sign-on and two-factor portal for the apps behind your reverse proxy (forward auth, OpenID Connect).

Install

On the Proxmox node as root:

bash -c "$(curl -fsSL https://iac.heyer.systems/authelia/ct.sh)"

Container from the Debian 13 template · default: 1 CPU, 512 MiB RAM, 4 GiB disk

Customise the commandYour own values for CPU, RAM, network and modules – no dialog

Then: Portal: the authelia_url behind your HTTPS reverse proxy (upstream http://<IP>:9091) – login: admin, password in the guest: grep authelia_admin_password /etc/iac/settings.env

Settings per instance

SettingMeaning
authelia_domainCookie domain – Domain of the apps Authelia protects, e.g. example.com (the session cookie is valid for it and all subdomains). Empty = example.com as a placeholder – change it in /etc/authelia/configuration.yml.
authelia_urlPortal URL – https:// URL of the Authelia portal at your reverse proxy, below the cookie domain. Empty = https://auth.<cookie domain>.

When creating a container, as var_<setting>:

var_authelia_domain="<value>" bash -c "$(curl -fsSL https://iac.heyer.systems/authelia/ct.sh)"

Set or change later, in the guest (for VMs the only way so far): a line authelia_domain=<value> in /etc/iac/settings.env – no quotes, the last line of a setting wins – then:

update

With NetBox: the same line authelia_domain=<value> in the field Settings of the VM – it takes effect at the next update. Secrets stay in the guest.

Missing or empty = the app's default. Do not edit the configuration files iac writes – update overwrites them; their first lines name the file for local changes.

Update

In the guest:

update

Debian packages, Authelia, modules and the iac configuration. Major versions never change automatically.

Add modules – any time, in containers and VMs alike:

update --list-modules
update --add-modules node-exporter

All modules · More about update

Adopt an existing installation in the guest as root

bash -c "$(curl -fsSL https://iac.heyer.systems/authelia/adopt.sh)"

Checks first and stops before any change if an automatic adoption is not possible – then follow the migration guide.