#Unable to setup wakapi with outpost?

1 messages · Page 1 of 1 (latest)

grim lagoon
#

Hi everyone!

I'm stuck with that issue where I'm getting greeted with a 500 error from Nginx.

I'm trying to setup trusted headers with Wakapi and the embedded outpost.

My nginx config

server {
    listen                  443 ssl;
    server_name             wakatime.home.local;

    ssl_certificate         /etc/certs/local/cert.pem;
    ssl_certificate_key     /etc/certs/local/privkey.pem;

    proxy_buffers 8 16k;
    proxy_buffer_size 32k;

    location / {
        proxy_pass http://localhost:3030;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $connection_upgrade_keepalive;

        auth_request     /outpost.goauthentik.io/auth/nginx;
        error_page       401 = @goauthentik_proxy_signin;
        auth_request_set $auth_cookie $upstream_http_set_cookie;
        add_header       Set-Cookie $auth_cookie;

        # Removed the Nginx auth request headers from here due to Discord char limits
    }

    location /outpost.goauthentik.io {
        proxy_pass              http://127.0.0.1:9000/outpost.goauthentik.io;

        proxy_set_header        Host $host;

        proxy_set_header        X-Original-URL $scheme://$http_host$request_uri;
        add_header              Set-Cookie $auth_cookie;
        auth_request_set        $auth_cookie $upstream_http_set_cookie;
        proxy_pass_request_body off;
        proxy_set_header        Content-Length "";
    }

    location @goauthentik_proxy_signin {
        internal;
        add_header Set-Cookie $auth_cookie;
        return 302 https://auth.home.local/outpost.goauthentik.io/start?rd=$scheme://$http_host$request_uri;
    }
}

I'm getting the following in the nginx error logs: ```
2025/08/01 15:05:50 [error] *281 auth request unexpected status: 400 while sending to client, client: localip, server: wakapi.home.local, request: "GET /favicon.ico HTTP/2.0", host: "wakapi.home.local", referrer: "https://wakapi.home.local/"


Thanks in advance for your help!
#

Also please mention me if you're replying

grim lagoon
#

going to /auth/nginx throws a "configuration error" for some reason?