proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
# we don't want nginx trying to do something clever with
# redirects, we set the Host: header above already.
proxy_redirect off;
# OpenID Connect uses large headers, we need bigger buffers.
proxy_buffer_size 128k;
proxy_buffers 8 256k;
