Add config for nginx vhost-traffic-status module
This commit is contained in:
parent
083ba2bc78
commit
662daf1351
3 changed files with 29 additions and 0 deletions
|
@ -11,6 +11,8 @@ http {
|
|||
|
||||
resolver 127.0.0.1 valid=10s;
|
||||
|
||||
vhost_traffic_status_zone;
|
||||
|
||||
ssl_certificate ../stack/ssl.cert;
|
||||
ssl_certificate_key ../stack/ssl.key;
|
||||
ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';
|
||||
|
@ -52,6 +54,14 @@ http {
|
|||
|
||||
access_log /dev/stdout lb_logs;
|
||||
}
|
||||
|
||||
server {
|
||||
include vhost-traffic-status.conf;
|
||||
|
||||
listen 9080 default;
|
||||
|
||||
access_log /dev/stdout lb_logs;
|
||||
}
|
||||
}
|
||||
|
||||
{% else %}
|
||||
|
@ -62,6 +72,8 @@ http {
|
|||
|
||||
resolver 127.0.0.1 valid=10s;
|
||||
|
||||
vhost_traffic_status_zone;
|
||||
|
||||
server {
|
||||
include server-base.conf;
|
||||
|
||||
|
@ -69,6 +81,14 @@ http {
|
|||
|
||||
access_log /dev/stdout lb_logs;
|
||||
}
|
||||
|
||||
server {
|
||||
include vhost-traffic-status.conf;
|
||||
|
||||
listen 9080 default;
|
||||
|
||||
access_log /dev/stdout lb_logs;
|
||||
}
|
||||
}
|
||||
|
||||
{% endif %}
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# vim: ft=nginx
|
||||
|
||||
load_module modules/ngx_http_vhost_traffic_status_module.so;
|
||||
|
||||
pid /tmp/nginx.pid;
|
||||
error_log /dev/stdout;
|
||||
|
||||
|
|
7
conf/nginx/vhost-traffic-status.conf
Normal file
7
conf/nginx/vhost-traffic-status.conf
Normal file
|
@ -0,0 +1,7 @@
|
|||
# vim: ft=nginx
|
||||
|
||||
server_name _;
|
||||
|
||||
root /dev/null;
|
||||
|
||||
vhost_traffic_status_display;
|
Reference in a new issue