diff --git a/CHANGELOG.md b/CHANGELOG.md index b6fded4..649ab72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,11 +6,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### v3.9.5 - [Unreleased] +#### Added + +- Nginx module_vts +- Nginx dynamic_tls_records + #### Changed - Update WP-CLI version to 2.1.0 - Update Adminer to 4.6.2 -- Update Nginx-build +- Update Nginx-build to 1.14.2 +- Refactored nginx.conf #### Fixed diff --git a/wo/cli/templates/22222.mustache b/wo/cli/templates/22222.mustache index ab7da89..232e88f 100644 --- a/wo/cli/templates/22222.mustache +++ b/wo/cli/templates/22222.mustache @@ -21,6 +21,12 @@ server { # HTTP Authentication on port 22222 include common/acl.conf; + + # nginx-vts-status + location /vts_status { + vhost_traffic_status_display; + vhost_traffic_status_display_format html; + } location / { try_files $uri $uri/ /index.php$is_args$args; @@ -41,4 +47,27 @@ server { include fastcgi_params; fastcgi_pass php72; } + + location /netdata { + return 301 /netdata/; + } + + location ~ /netdata/(?.*) { + proxy_redirect off; + proxy_set_header Host $host; + + proxy_set_header X-Forwarded-Host $host; + proxy_set_header X-Forwarded-Server $host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_http_version 1.1; + proxy_pass_request_headers on; + proxy_set_header Connection "keep-alive"; + proxy_store off; + proxy_pass http://netdata/$ndpath$is_args$args; + + gzip on; + gzip_proxied any; + gzip_types *; + } + }