main.yml 1.8 KB

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