Skip to content

authentik config #726

Answered by Zoey2936
Vylooo asked this question in Q&A
Mar 26, 2024 · 7 comments · 69 replies
Discussion options

You must be logged in to vote

please try:

port_in_redirect off;
location / {
    include conf.d/include/always.conf;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $connection_upgrade;
    include conf.d/include/proxy.conf;

    auth_request /outpost.goauthentik.io/auth/nginx;
    error_page 401 = @goauthentik_proxy_signin;
    auth_request_set $auth_cookie $upstream_http_set_cookie;
    more_set_headers 'Set-Cookie: $auth_cookie';
    auth_request_set $authentik_username $upstream_http_x_authentik_username;
    auth_request_set $authentik_groups $upstream_http_x_authentik_groups;
    auth_request_set $authentik_email $upstream_http_x_authentik_email;
    auth_request_set $authentik_name $…

Replies: 7 comments 69 replies

Comment options

You must be logged in to vote
1 reply
@Zoey2936
Comment options

Comment options

You must be logged in to vote
48 replies
@davbay1
Comment options

@davbay1
Comment options

@Zoey2936
Comment options

@davbay1
Comment options

@Zoey2936
Comment options

Comment options

You must be logged in to vote
5 replies
@Zoey2936
Comment options

@d4rkw1n9
Comment options

@d4rkw1n9
Comment options

@Zoey2936
Comment options

@d4rkw1n9
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@Zoey2936
Comment options

@saitoh183
Comment options

@saitoh183
Comment options

@Zoey2936
Comment options

Answer selected by Zoey2936
@saitoh183
Comment options

@Zoey2936
Comment options

@d4rkw1n9
Comment options

@Zoey2936
Comment options

Comment options

You must be logged in to vote
7 replies
@pr0927
Comment options

@Zoey2936
Comment options

@Zoey2936
Comment options

@d4rkw1n9
Comment options

@pr0927
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
8 participants
Converted from issue

This discussion was converted from issue #725 on March 26, 2024 13:30.