Giter VIP home page Giter VIP logo

nginx's Introduction

nginx

Tested on: Debian 9

Configure nginx for general use. TLS is always enabled per default enforced (in that case HTTP only gets you a HTTP 302). HSTS is always enabled. To use, simply put your own config under /etc/nginx/base.d. It will automatically be included in the default server block. If the specified certificate does not exist (yet), we upload snakeoil certificates(that is, a dummy certificate contained in this repositoriy along with it's private key) so that nginx is able to start. You're supposed to use our letsencrypt role to replace them with real certificates ;)

Configuration

Var Default value Description
nginx_fqdn ansible_fqdn The FQDN of this server, used especially for HTTPS
nginx_ssl_protocols TLSv1.2 The SSL protocols to support, see below
nginx_ssl_ciphers (see defaults/main.yml) A 'modern' suite of ciphers. For more general settings or general configuration advice on this matter, see Mozilla's excellent wiki on that matter.
nginx_ledir /var/www/letsencrypt Where will Let's Encrypt challenges be located?
nginx_sslonly True Whether to enforce SSL by only sending 302 redirects on the HTTP port
nginx_key_path (see defaults/main.yml) Path to the SSL certificate's key
nginx_fullchain_path (see defaults/main.yml) Path to the certificate bundle used to verify an OCSP server's response
nginx_extra_hosts [] List of extra vhosts to create. They work just like the base vhost, see defaults/main.yml for how to format the list
nginx_proxy_subnet 192.168.0.0/24 Subnet to trust with origin IP when using the proxy protocol
nginx_clientcert unset Path to a valid CA cert for client certificates. If nginx_clientcert_verify is unset, client certificates will be requested but not required. Mutually exclusive with OCSP stapling at the moment.
nginx_clientcert_verify unset If nginx_clientcert is used, set verification. Available options: "on", "off", "optional", "optional_no_ca". Defaults to "optional".
nginx_enable_spnego False Whether to enable SPNEGO (Kerberos) support
nginx_spnego_realm EXAMPLE.ORG Which kerberos realm to use
nginx_spenego_users [] If set, which users to limit auth to
nginx_http_enabled True Whether to enable plain HTTP
nginx_enable_normal True Whether to enable plain HTTPs
nginx_enable_proxy False Whether to enable listening with the proxy protocol on port 444
nginx_http_bind [::]:80 Where to bind for HTTP
nginx_https_bind [::]:443 Where to bind for HTTPs
nginx_https_proxy_bind [::]:444 Where to bind for HTTPs with proxy protocol

Dependencies

None.

SPNEGO

Support is based on this module. You're expected to set up a keytab with HTTP/{{ fqdn }}@REALM in /etc/nginx/krb5-ngx.keytab, authentication is enabled by setting auth_gss on;.

nginx's People

Contributors

carbenium avatar niklassc7 avatar uubk avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

vs-eth carbenium

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.