0.1.28-DEV-20200515-171249

--------------------------
    * ADD:
      - status_page option for /nginx_status; toggle per site

    * MODIFY:
      - defaults/main/proxy_sites.yml formatting modified for readability
This commit is contained in:
Chris Hammer 2020-05-15 17:13:44 -04:00
parent 280a336925
commit 60de35b945
3 changed files with 44 additions and 37 deletions

View File

@ -3,7 +3,7 @@
proxy_site_conf_dir : /etc/nginx/conf.d proxy_site_conf_dir : /etc/nginx/conf.d
proxy_site_file : "{{ proxy_site_conf_dir }}/zen_proxy.conf" proxy_site_file : "{{ proxy_site_conf_dir }}/zen_proxy.conf"
proxy_site_version : 1.8 proxy_site_version : 1.8
proxy_site_revision : 20200113-141420 proxy_site_revision : 20200515-171007
proxy_site_log_path : /proxy_logs proxy_site_log_path : /proxy_logs

View File

@ -186,6 +186,7 @@ proxy_sites:
dest : "{{ proxy_default_host }}" dest : "{{ proxy_default_host }}"
port : 443 port : 443
max_upload : "{{ proxy_default_max_upload }}" max_upload : "{{ proxy_default_max_upload }}"
status_page : True
devel.thezengarden.net: devel.thezengarden.net:

View File

@ -27,6 +27,12 @@ server {
client_max_body_size {{ proxy_sites[item.key]['max_upload'] }}; client_max_body_size {{ proxy_sites[item.key]['max_upload'] }};
{% endif %} {% endif %}
{% if proxy_sites[item.key]['status_page'] is defined %}
location /nginx_status {
stub_status;
}
{% endif %}
location / { location / {
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Host $host;