This commit is contained in:
Raphael Parree 2022-02-24 11:15:15 -03:00 committed by GitHub
commit a0ca5a9804
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -352,8 +352,10 @@ server {
{{ end }}
{{ if (exists (printf "/etc/nginx/htpasswd/%s" $host)) }}
limit_except OPTIONS {
auth_basic "Restricted {{ $host }}";
auth_basic_user_file {{ (printf "/etc/nginx/htpasswd/%s" $host) }};
}
{{ end }}
{{ if (exists (printf "/etc/nginx/vhost.d/%s_location" $host)) }}
include {{ printf "/etc/nginx/vhost.d/%s_location" $host}};