Skip to content
Discussion options

You must be logged in to vote

Heya,
This config worked for my use case, though I'm not sure how much this helps in your custom config, but possibly it can serve you as inspiration.

# Increase buffer size for large headers
# This is needed only if you get 'upstream sent too big header while reading response
# header from upstream' error when trying to access an application protected by goauthentik
proxy_buffers 8 16k;
proxy_buffer_size 32k;

location / {
    # Put your proxy_pass to your application here
    proxy_pass          $forward_scheme://$server:$port;

    # CUSTOM - Websocket behind authenticated proxy
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_set_header

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@Eandy11
Comment options

@CrazyWolf13
Comment options

Answer selected by Eandy11
Comment options

You must be logged in to vote
2 replies
@CrazyWolf13
Comment options

@Eandy11
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants