Coder Social home page Coder Social logo

ansible-role-nginx's Introduction

Ansible Role NGINX Build Status Ansible Role

Nginx (pronounced "engine x") is a web server. It can act as a reverse proxy server for TCP, UDP, HTTP, HTTPS, SMTP, POP3, and IMAP protocols, as well as a load balancer and an HTTP cache.

http://nginx.org/

Requirements

  • if nginx_enable_geoip is enabled

Role Variables

The variables that can be passed to this role and a brief description about them are as follows. (For all variables, take a look at defaults/main.yml)

# Sets the maximum allowed size of the client request body.
nginx_client_max_body_size: '2M'

# List of dynamic modules to load.
nginx_modules: 
  - ngx_http_modsecurity

# Defines trusted addresses that are known to send correct replacement addresses.
nginx_set_real_ip_from: '192.168.1.1'

# Defines the request header field whose value will be used to replace the client address.
nginx_real_ip_header: 'X-Real-IP'

# Enable nginx GeoIP support.
nginx_enable_geoip: yes

Dependencies

None

Example Playbook

- hosts: servers
  roles:
     - { role: mkubenka.nginx }

License

BSD

Author Information

Michal Kubenka [email protected]

ansible-role-nginx's People

Watchers

 avatar  avatar  avatar

Forkers

iamgeert

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.