Skip to content

Update Authentik configuration to use HTTPS and updated ports to allow compatability with 2026.8 update. - #627

Open
HeyItsJono wants to merge 1 commit into
linuxserver:masterfrom
HeyItsJono:patch-1
Open

Update Authentik configuration to use HTTPS and updated ports to allow compatability with 2026.8 update.#627
HeyItsJono wants to merge 1 commit into
linuxserver:masterfrom
HeyItsJono:patch-1

Conversation

@HeyItsJono

Copy link
Copy Markdown

linuxserver.io


  • I have read the contributing guideline and understand that I have made the correct modifications

Description:

The latest version of Authentik (2026.8) requires an update to the Nginx config to pass the https protocol and 9443 (https) port, rather than the previous configuration passing the http protocol & port (9000).
Alternatively, a user can 'trust' a CIDN in their Authentik configuration's environment with the variable AUTHENTIK_LISTEN__TRUSTED_PROXY_CIDRS=*Docker Subnet*, though there is very little documentation on this and users are not guided to do so, which means out-of-the-box without the changes in this PR, Authentik configurations served via SWAG will fail with the bugs outlined in this Authentik issue.

This will also need an update to authentik.subdomain.conf to also change $upstream_proto to https, and set $upstream_port to 9443, but I couldn't find that file in this repo to include in my PR.

Benefits of this PR and context:

Fixes the errors outlined in the Authentik issue linked above and allows SWAG Authentik configurations to work out-of-the-box.
If the overall feeling is that this shouldn't be corrected on SWAG's end, and users are instead encouraged to set up the alternative fix using the Authentik environment variable, then it may be worth including a comment in the authentik-server.conf and authentik.subdomain.conf files to suggest users set this environment variable.

How Has This Been Tested?

Tested on my own personal SWAG / Authentik config, both of which are served from the same docker compose file on a Pop!_OS host.

Source / References:

goauthentik/authentik#25559

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for opening this pull request! Be sure to follow the pull request template!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants