authelia: add the nginx configuration

This commit is contained in:
Lukáš Kucharczyk 2021-06-20 19:38:28 +02:00
parent c19bd16a41
commit c45df9911f
No known key found for this signature in database
GPG Key ID: 65524498C0196B64
1 changed files with 15 additions and 0 deletions

View File

@ -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;
}
}