add ngnix-status to config
add doc
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
matrix_nginx_proxy_enabled: true
|
||||
|
||||
matrix_nginx_proxy_nginx_status_enabled: false
|
||||
|
||||
# We use an official nginx image, which we fix-up to run unprivileged.
|
||||
# An alternative would be an `nginxinc/nginx-unprivileged` image, but
|
||||
# those as more frequently out of date.
|
||||
|
@ -4,6 +4,15 @@ server {
|
||||
|
||||
server_tokens off;
|
||||
|
||||
{% if matrix_nginx_proxy_nginx_status_enabled %}
|
||||
location /nginx_status {
|
||||
stub_status on;
|
||||
access_log off;
|
||||
allow {{ ansible_default_ipv4.address }};
|
||||
deny all;
|
||||
}
|
||||
{% endif %}
|
||||
|
||||
location /.well-known/acme-challenge {
|
||||
{% if matrix_nginx_proxy_enabled %}
|
||||
{# Use the embedded DNS resolver in Docker containers to discover the service #}
|
||||
|
Reference in New Issue
Block a user