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

16 lines
399 B
Plaintext
Raw Permalink Normal View History

2021-06-20 17:38:28 +00:00
server {
2021-06-20 18:37:06 +00:00
server_name auth.{{ base_domain }};
2021-06-21 09:28:36 +00:00
listen 80;
return 301 https://$server_name$request_uri;
2021-06-20 17:38:28 +00:00
}
server {
server_name auth.{{ base_domain }};
listen 443 ssl http2;
location / {
2021-06-20 19:53:20 +00:00
include /etc/nginx/snippets/proxy.conf;
2021-06-20 17:38:28 +00:00
set $upstream_authelia http://authelia:9091; # This example assumes a Docker deployment
proxy_pass $upstream_authelia;
}
}