Traefik Page Isn't Redirecting Properly
In the setup of Traefik I ran into an issue of “This page isn’t redirecting properly” or “Too many redirects”. There were no errors in either the Traefik or Authentik logs. The issue was a Cloudflare setting. By default the SSL mode is set on “flexible” and should be set to “full”.
- Log into your Cloudflare Dashboard
- Select the domain
- Go to SSL/TLS -> Overview
- Check Current encryption mode. This should be Full.
How to Sudo
Here’s how to install sudo:
- Become root: You’ll need root privileges to install software. Use the su command to switch to the root user:
su -
Enter the root password when prompted.
- Install sudo: Once you’re logged in as root, use the apt package manager to install sudo:
apt update
apt install sudo
- Add user to sudo group (again): After installing sudo, repeat the command to add your user to the sudo group (since the previous attempt likely failed):
usermod -aG sudo <username>
Log out and back in: To ensure the changes take effect, log out of your current user session and log back in.