Authelia is a powerful authentication server that provides single sign-on (SSO) functionality to your applications. This tutorial will guide you through the process of installing Authelia on a Fedora Server latest.
Docker is a powerful tool that you will use to execute Authelia's processes. To install and configure Docker, follow the steps below:
sudo dnf config-manager --add-repo=https://download.docker.com/linux/fedora/docker-ce.repo
sudo dnf install docker-ce docker-ce-cli containerd.io
sudo systemctl start docker
sudo systemctl enable docker
sudo docker run --rm hello-world
You will install Authelia by running it in a Docker container. Follow the steps below:
sudo mkdir /etc/authelia
cd /etc/authelia
sudo vim docker-compose.yml
version: '3'
services:
authelia:
image: authelia/authelia
container_name: authelia
ports:
- "8080:8080"
- "443:443"
volumes:
- ./config:/etc/authelia
- ./data:/var/lib/authelia
- ./certificates/acme.json:/acme.json
restart: always
networks:
- app_net
networks:
app_net:
sudo vim config.yml
log_level: info
ldap:
host: "ldap://ldap.forumsys.com"
user_dn: "cn=read-only-admin,dc=example,dc=com"
password: "password"
base_dn: "dc=example,dc=com"
additional_users_dn: "ou=users,dc=example,dc=com"
group_dn: "ou=groups,dc=example,dc=com"
additional_groups_dn: "ou=groups,dc=example,dc=com"
override_username: ""
start_tls: false
scope: 2
user_attribute: "uid"
group_attribute: "cn"
group_member_attribute: "memberUid"
look_for_member_of: true
idle_timeout: 5m
cache:
enabled: false
size: 10000
ttl: 1h
interval: 10m
authelia:
issuer: "https://example.com"
jwt_secret: "thEakdpW5m5FFv" # replace with your own secret
session:
domain: "example.com"
name: "authelia"
secret: "0eb41fe92ce540d1d0f2d0eaa7bde550b190256572d9e0e9054fbd4dc4fe378547d43e41ebc51656934b4282f464a3c9d3fe422e8cf4fec4e17fb83c4fbbbc21" # replace with your own secret
ldap:
url: "ldap://ldap.forumsys.com"
user_base_dn: "dc=example,dc=com"
enabled: true
notifier:
journald:
enabled: false
smtp:
host: smtp.example.com
port: 587
preferred_encoding: ""
subject: Authelia Notification
identifier: "authelia@example.com"
username: "authelia@example.com"
password: "myemailpassword" # replace with your own password
access_control:
# Define the default rules used to deny access to your resources.
default_policy: deny
# List of rules allowing access to any URL.
rules:
# Allows everyone to access the login page.
- domain: example.com
path: /signin
methods: [ GET, POST ]
identity_verifier: none
policy: bypass
# Allows access to the dashboard only if authenticated.
- domain: example.com
path: /dashboard
methods: [ GET, POST ]
policy: one_factor
To start and enable Authelia to run automatically whenever the server boots up, follow the steps below:
sudo docker-compose up -d
The -d switch starts the container in detached mode, which allows you to exit the terminal session without stopping the container.
https://<hostname>:8080
sudo systemctl enable docker-compose@authelia
You have successfully installed Authelia on Fedora Server latest. You can now use Authelia's powerful SSO functionality to secure your applications. If you encounter any issues, refer to Authelia's documentation for more information.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!