From b32878ad9ca70d6e8fc977155da0a13d260bc642 Mon Sep 17 00:00:00 2001 From: driz <40674481+drizuid@users.noreply.github.com> Date: Sun, 5 Feb 2023 15:32:54 -0500 Subject: [PATCH] Create authentik.subdomain.conf.sample --- authentik.subdomain.conf.sample | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 authentik.subdomain.conf.sample diff --git a/authentik.subdomain.conf.sample b/authentik.subdomain.conf.sample new file mode 100644 index 0000000..e3f7488 --- /dev/null +++ b/authentik.subdomain.conf.sample @@ -0,0 +1,21 @@ +## Version 2023/02/01 +# make sure that your dns has a cname set for authentik and that your authentik container is not using a base url + +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + server_name authentik.*; + + include /config/nginx/ssl.conf; + client_max_body_size 0; + location / { + include /config/nginx/proxy.conf; + include /config/nginx/resolver.conf; + proxy_set_header Host $host; + proxy_set_header Connection $connection_upgrade_keepalive; + set $upstream_app authentik-server; + set $upstream_port 9443; + set $upstream_proto https; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + } +}