From c45df9911f6fb810279bb3e530671eb64204961c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Sun, 20 Jun 2021 19:38:28 +0200 Subject: [PATCH] authelia: add the nginx configuration --- roles/authelia/templates/authelia.conf.j2 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 roles/authelia/templates/authelia.conf.j2 diff --git a/roles/authelia/templates/authelia.conf.j2 b/roles/authelia/templates/authelia.conf.j2 new file mode 100644 index 0000000..463c3dc --- /dev/null +++ b/roles/authelia/templates/authelia.conf.j2 @@ -0,0 +1,15 @@ +server { + listen 80; + return 301 https://$host$request_uri; +} + +server { + server_name auth.{{ base_domain }}; + listen 443 ssl http2; + + location / { + set $upstream_authelia http://authelia:9091; # This example assumes a Docker deployment + proxy_pass $upstream_authelia; + include /etc/nginx/snippets/proxy.conf; + } +} \ No newline at end of file