35 lines
1.1 KiB
Django/Jinja
35 lines
1.1 KiB
Django/Jinja
server {
|
|
listen 443 ssl http2;
|
|
|
|
server_name {{ tools_url }};
|
|
|
|
access_log /var/log/nginx/access_{{ tools_url }}.log main;
|
|
error_log /var/log/nginx/error_{{ tools_url }}.log warn;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/{{ domain }}/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/{{ domain }}/privkey.pem;
|
|
|
|
include /etc/nginx/authelia_internal.conf;
|
|
|
|
location /stats-g0 {
|
|
include /etc/nginx/require_auth.conf;
|
|
# include /etc/nginx/require_auth_proxy.conf;
|
|
|
|
proxy_pass http://{{ wg_clients['fsn-lb-g0.sudo.is'].ip }}:8404/stats/;
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
proxy_set_header Host $host;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Connection "";
|
|
}
|
|
location /stats-g1 {
|
|
# include /etc/nginx/require_auth.conf;
|
|
# include /etc/nginx/require_auth_proxy.conf;
|
|
|
|
proxy_pass http://{{ wg_clients['fsn-lb-g1.sudo.is'].ip }}:8404/stats/;
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
proxy_set_header Host $host;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Connection "";
|
|
}
|
|
}
|