ndlli 发表于 2018-1-2 11:02:13

Ansible自动化运维笔记3(playbook)

user                                    adminadmin;  worker_processes                        8;
  worker_cpu_affinity                     {{ ansible_processor_cores }};
  error_log                               /export/servers/nginx/logs/nginx_error.logwarn;
  pid                                     /export/servers/nginx/run/nginx.pid;
  worker_rlimit_nofile                  65535;
  events
  {
  use epoll;
  worker_connections 65535;
  }
  http
  {
  include                         mime.types;
  default_type                  application/octet-stream;
  server_tokens                   on;
  log_format main               '$remote_addr - $remote_user [$time_local] "$http_x_forwarded_for" "$http_j_forwarded_for" '
  '"$request" $status $bytes_sent '
  '"$http_referer" "$http_user_agent" '
  '"$gzip_ratio"';
  #charset                        utf-8;
  server_names_hash_bucket_size   128;
  client_header_buffer_size       32k;
  large_client_header_buffers   4 32k;
  client_max_body_size            300m;
  sendfile                        on;
  tcp_nopush                      on;
  keepalive_timeout               0;
  tcp_nodelay                     on;
  client_body_buffer_size         512k;
  fastcgi_intercept_errors      on;
  proxy_connect_timeout         90;
  proxy_read_timeout            180;
  proxy_send_timeout            180;
  proxy_buffer_size               256k;
  proxy_buffers                   4 256k;
  proxy_busy_buffers_size         256k;
  proxy_temp_file_write_size      256k;
  proxy_intercept_errors          on;
  server_name_in_redirect         off;
  proxy_hide_header       X-Powered-By;
  gzip                            on;
  gzip_min_length               100;
  gzip_buffers                  4 16k;
  gzip_http_version               1.0;
  gzip_comp_level               9;
  gzip_types                      text/plain application/x-javascript text/css application/xml;
  gzip_vary                     on;
  gzip_proxied                     any;
  include domains/*;
  ###########status#########
  #      server
  #                {
  #               listen               80;
  #               server_name            status.360buy.com;
  #      location / {
  #               stub_status            on;
  #               access_log             off;
  #               }
  #      }
  }
页: [1]
查看完整版本: Ansible自动化运维笔记3(playbook)