homelab/roles/authelia/templates/authelia.conf.j2

16 lines
392 B
Django/Jinja

server {
listen 80;
server_name auth.{{ base_domain }};
return 301 https://$host$request_uri;
}
server {
server_name auth.{{ base_domain }};
listen 443 ssl http2;
location / {
include /etc/nginx/snippets/proxy.conf;
set $upstream_authelia http://authelia:9091; # This example assumes a Docker deployment
proxy_pass $upstream_authelia;
}
}