Coder Social home page Coder Social logo

ansible-nginx's Introduction

ansible-nginx

nginx is an HTTP and reverse proxy server, a mail proxy server, and a generic TCP proxy server

Platforms Build Status

Tunables

  • nginx_port (integer) - The default unsecure port nginx will listen on
  • nginx_user (string) - User to run nginx as
  • nginx_worker_processes (integer) - number of worker processes
  • nginx_worker_connections (integer) - maximum connections per worker
  • nginx_runtime_root (string) - Directory for runtime data
  • nginx_pidfile_path (string) - Path for pidfile
  • nginx_socket_path (string) - Path for socket
  • nginx_log_root (string) - Directory for logs
  • nginx_access_log_enabled (boolean) - Enable access logs?
  • nginx_access_log_path (string) - Path for access log
  • nginx_access_log_ignore_static_assets (boolean) - Do not log requests for static assets
  • nginx_access_log_format (string) - Log format to use
  • nginx_error_log_enabled (boolean) - Enable error logs?
  • nginx_error_log_path (string) - Path for error log
  • nginx_error_log_critical_only (boolean) - Only log critical errors?
  • nginx_hide_version (boolean) - Hide version of nginx?
  • nginx_naxsi_enabled (boolean) - Enable naxsi WAF
  • nginx_attack_mitigation_enabled (boolean) - Aggressively favour resiliency over compatibility?
  • nginx_gzip_enabled (boolean) - Compress responses?
  • nginx_performance_tuning_enabled (boolean) - Aggressively favour performance over compatibility?
  • nginx_file_descriptor_caching_enabled (boolean) - Enable file descriptor caching?
  • nginx_docroot (string) - Directory for docroot
  • nginx_creates_docroot (boolean) - Enable to get nginx to create the docroot path
  • nginx_standard_configuration (boolean) - Using included configuration?
  • nginx_passenger_enabled (boolean) - Enable passenger for Ruby apps?
  • nginx_php_enabled (boolean) - Pass requests for PHP files to php-fpm?
  • php_fpm_socket_path (string) - Path to socket for php-fpm
  • nginx_ssl_port (integer) - The default secure port nginx will listen on
  • nginx_ssl_disabled (boolean) - Redirect HTTPS to HTTP
  • nginx_ssl_enforced (boolean) - Redirect HTTP to HTTPS
  • nginx_ssl_enabled (boolean) - Enable HTTPS support
  • nginx_ssl_pass_tls_version (boolean) - Pass the TLS version to the application?
  • nginx_ssl_certificate_path (string) - Path to SSL public key (certificate file)
  • nginx_ssl_key_path (string) - Path to SSL private key (key file)
  • nginx_ssl_should_degrade_security_to_accomodate_old_browsers (boolean) - Compromise security to support older browsers?
  • nginx_ssl_protocol_detection (boolean) - Write a cookie with the clients TLS version in it
  • nginx_cors_enabled (boolean) - Enable CORS support?
  • nginx_cors_whitelist_enabled (boolean) - Use whitelisting for CORS handling?
  • nginx_cors_whitelist_protocol (string) - Protocol to require for CORS?
  • nginx_cors_whitelist_hosts (string) - Regular expression to match hosts against for CORS whitelist.
  • nginx_redirect_missing_files_to_root (boolean) - Redirect HTTP 404s to / (this is usually a bad idea)
  • nginx_client_max_body_size (string) - Maximum size of the body of a request.
  • nginx_file_extension_blacklist (string) - Refuse to serve files matching this regular expression.
  • nginx_auth_enabled (boolean) - Enable HTTP Basic Auth?
  • nginx_auth_password (string) - Password for HTTP Basic Auth.
  • nginx_auth_location (string) - Path to auth file?
  • nginx_auth_username (string) - Username for auth?
  • nginx_auth_salt (string) - Salt for auth password?
  • nginx_fastcgi_params (string) - Path of the fastcgi params include
  • nginx_fastcgi_buffers (string) - Buffer size for FastCGI requests
  • nginx_context_proxy_enabled (boolean) - Proxy requests for specific context paths?
  • nginx_context_proxy_pass_location_try_files_override (boolean) - Disable default location try_files if proxy context_path conflicts?
  • nginx_context_proxy_host (string) - Upstream location for proxied requests
  • nginx_context_proxy_domain_equivalence (string) - Rewrite cookies for one domain to another, with proxied requests.
  • nginx_context_proxy_paths (list) - Paths that should be proxied
  • nginx_redirects (list) - List of things to redirect to other things.
  • nginx_redirects_for_browser_profile_and_locale_enabled (boolean) - Very... specific redirect rules. You probably don't have any use for this.
  • nginx_php_virtual_context_path (string) - If an application is served
  • nginx_php_path_blacklist_enabled (boolean) - Blacklist paths from being sent to php-fpm.
  • nginx_php_path_blacklist_regexp (string) - Do not hand off requests matching this regular expression to php-fpm
  • nginx_php_path_blacklist_try_files (string) - try_files directive for blacklisted files.
  • nginx_php_append_querystring (string) - Append this to PHP querystrings.
  • nginx_php_html_index (string) - Allow HTML index files if PHP is enabled?
  • nginx_keyhole_markup_language_support_enabled (boolean) - Is KML/KMZ required?
  • nginx_php_fix_321 (boolean) - Enable the fix indicated in https://trac.nginx.org/nginx/ticket/321
  • nginx_developer_environments_enabled (boolean) - Map subdomains to project directories for users.
  • nginx_developer_environment_regexp (string) - Regular expression to match developer environments
  • nginx_developer_environment_docroot (string) - Docroot for developer environments
  • nginx_php_fastcgi_param_extras (list) - Extra parameters to send to php-fpm
  • nginx_php_index_only (boolean) - Only accept requests for index.php
  • nginx_static_asset_handling_enabled (boolean) - Enable optimizations for static asset handling?
  • nginx_static_asset_handling_extentions (list) - Extentions to handle as static assets
  • nginx_internal_paths_enabled (boolean) - Treat some paths as internal?
  • nginx_internal_paths (boolean) - List of paths to treat as internal
  • nginx_whitelist_ips (list) - List of IPs to allow access to whitelisted paths.
  • nginx_whitelist_paths (list) - List of whitelisted paths.
  • nginx_index (string) - Index filename(s)
  • nginx_localhost_authorization_required (boolean) - Require authorization if requests are from localhost?
  • nginx_flag_social_crawlers (boolean) - Flag social crawlers?
  • nginx_prerender_enabled (boolean) - Enable prerender.io support
  • nginx_configuration_name (string) - Name of the configuration file to use the standard configuration template
  • nginx_configuration_type (string) - Filename of the configuration file
  • nginx_insecure_listener_enabled (boolean) - Enable the insecure (http, non-ssl) listener
  • nginx_http2_enabled (boolean) - Enable http2 on the ssl connections
  • nginx_pre_extended_configuration (string) - complex project specific configuration (to be included just after https handshake standardl-configuration)
  • nginx_post_extended_configuration (string) - complex project specific configuration (to be appended to the end of the the standard-configuration)
  • nginx_restricted_paths (list) - List of paths to restrict access to.
  • nginx_allow_access_to_restricted_paths_from_ips (list) - List of ip addresses that require access to 'nginx_restricted_paths'.
  • nginx_restricted_paths_for_security (list) - List of paths to be blocked for security reasons (ideally playbooks dont override this)
  • nginx_whitelist_ips_for_security (list) - Whitelisted CIDR list to bypass security
  • nginx_harden_for_wordpress (boolean) - Harden configuration for wordpress to make it more secure
  • nginx_pagespeed_enabled (boolean) - Is google page speed enabled?
  • nginx_pagespeed_modules (list) - List of pagespeed modules to enable
  • nginx_error_pages (list) - List of objects; nginx_error_page.code - space delimited list of error codes; nginx_error_page.path the path to show for the given error codes

Dependencies

Example Playbook

- hosts: servers
  roles:
     - role: telusdigital.nginx

License

MIT

Contributors

ansible-nginx's People

Contributors

aaronpederson avatar alexandarp avatar colstrom avatar erichwelz avatar extremelylongusername avatar gotofbi avatar jscott avatar killerwails avatar kkwoker avatar lucidaeon avatar noqcks avatar pdufault avatar pkandathil avatar raizv avatar robbyoconnor avatar saumets avatar sbond-ps avatar stevenharradine avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ansible-nginx's Issues

Naxsi error

TASK [telusdigital.nginx : Install Packages | apt] ****************************
failed: [localhost] (item=[u'nginx-naxsi']) => {"cache_update_time": 1502484105, "cache_updated": false, "failed": true, "item": ["nginx-naxsi"], "msg": "'/usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold" install 'nginx-naxsi'' failed: E: Unable to correct problems, you have held broken packages.\n", "stderr": "E: Unable to correct problems, you have held broken packages.\n", "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nSome packages could not be installed. This may mean that you have\nrequested an impossible situation or if you are using the unstable\ndistribution that some required packages have not yet been created\nor been moved out of Incoming.\nThe following information may help to resolve the situation:\n\nThe following packages have unmet dependencies:\n nginx-naxsi : Depends: nginx-common (= 1.13.1-2chl1trusty1) but 1.13.4-1chl1trusty1 is to be installed\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "Some packages could not be installed. This may mean that you have", "requested an impossible situation or if you are using the unstable", "distribution that some required packages have not yet been created", "or been moved out of Incoming.", "The following information may help to resolve the situation:", "", "The following packages have unmet dependencies:", " nginx-naxsi : Depends: nginx-common (= 1.13.1-2chl1trusty1) but 1.13.4-1chl1trusty1 is to be installed"]}

php7 default sock path

When we tranistion to php7 by default we should update the flag below

php_fpm_socket_path: /var/run/php/php7.0-fpm.sock

wcadmin & wcedvelop

wcadmin & wcedvelop are not default groups on ubuntu boxes; we should be using staff, I believe.

We may need to create a nginx_group var to accomplish this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.