From a94615409ada490dc6373c2a3df59dea68205bd5 Mon Sep 17 00:00:00 2001
From: Leonardo Christino <leomilho@gmail.com>
Date: Wed, 18 Oct 2023 12:18:27 +0200
Subject: [PATCH] chore: keep ssl server name in nginx authentik auth route

---
 nginx/nginx.conf | 1 +
 1 file changed, 1 insertion(+)

diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index c9114ea10..44b598aa2 100644
--- a/nginx/nginx.conf
+++ b/nginx/nginx.conf
@@ -33,6 +33,7 @@ server {
         proxy_pass              https://auth.staging.graphpolaris.com/outpost.goauthentik.io;
         # ensure the host of this vserver matches your external URL you've configured
         # in authentik
+        proxy_ssl_server_name   on;
         proxy_set_header        Host $host;
         proxy_set_header        X-Original-URL $scheme://$http_host$request_uri;
         add_header              Set-Cookie $auth_cookie;
-- 
GitLab