20 lines
481 B
Django/Jinja
20 lines
481 B
Django/Jinja
server {
|
|
server_name {{ role_name }}.{{ base_domain }};
|
|
listen 80;
|
|
return 301 https://$server_name$request_uri;
|
|
}
|
|
|
|
server {
|
|
server_name {{ role_name }}.{{ base_domain }};
|
|
listen 443 ssl http2;
|
|
|
|
include /etc/nginx/snippets/authelia-endpoint.conf;
|
|
|
|
location / {
|
|
include /etc/nginx/snippets/proxy.conf;
|
|
include /etc/nginx/snippets/authelia-auth.conf;
|
|
|
|
set $upstream http://{{ role_name }}:7878;
|
|
proxy_pass $upstream;
|
|
}
|
|
} |