main.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. ---
  2. # Used only for Debian/Ubuntu installation, as the -t option for apt.
  3. nginx_default_release: ""
  4. # The name of the nginx apt/yum package to install.
  5. nginx_package_name: "nginx"
  6. nginx_worker_processes: "1"
  7. nginx_worker_connections: "1024"
  8. nginx_error_log: "/var/log/nginx/error.log warn"
  9. nginx_access_log: "/var/log/nginx/access.log main buffer=16k"
  10. nginx_sendfile: "on"
  11. nginx_tcp_nopush: "on"
  12. nginx_tcp_nodelay: "on"
  13. nginx_keepalive_timeout: "65"
  14. nginx_keepalive_requests: "100"
  15. nginx_client_max_body_size: "64m"
  16. nginx_proxy_cache_path: ""
  17. nginx_extra_conf_options: ""
  18. # Example extra main options, used within the main nginx's context:
  19. # nginx_extra_conf_options: |
  20. # env VARIABLE;
  21. # include /etc/nginx/main.d/*.conf;
  22. nginx_extra_http_options: ""
  23. # Example extra http options, printed inside the main server http config:
  24. # nginx_extra_http_options: |
  25. # proxy_buffering off;
  26. # proxy_set_header X-Real-IP $remote_addr;
  27. # proxy_set_header X-Scheme $scheme;
  28. # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  29. # proxy_set_header Host $http_host;
  30. nginx_remove_default_vhost: false
  31. nginx_vhosts: []
  32. # Example vhost below, showing all available options:
  33. # - listen: "80 default_server" # default: "80 default_server"
  34. # server_name: "example.com" # default: N/A
  35. # root: "/var/www/example.com" # default: N/A
  36. # index: "index.html index.htm" # default: "index.html index.htm"
  37. #
  38. # # Properties that are only added if defined:
  39. # error_page: ""
  40. # access_log: ""
  41. # error_log: ""
  42. # extra_parameters: "" # Can be used to add extra config blocks (multiline).
  43. nginx_upstreams: []
  44. # - name: myapp1
  45. # strategy: "ip_hash" # "least_conn", etc.
  46. # servers: {
  47. # "srv1.example.com",
  48. # "srv2.example.com weight=3",
  49. # "srv3.example.com"
  50. # }