No description
Find a file
2019-04-09 21:01:39 +02:00
defaults merged nginx-php role into this one 2019-04-09 21:01:39 +02:00
files merged nginx-php role into this one 2019-04-09 21:01:39 +02:00
handlers merged nginx-php role into this one 2019-04-09 21:01:39 +02:00
meta add support to monitor nginx 2018-11-13 00:12:16 +01:00
tasks merged nginx-php role into this one 2019-04-09 21:01:39 +02:00
templates fixed vhost config and ssl trusted certs 2019-03-30 20:39:16 +01:00
vars add support to monitor nginx 2018-11-13 00:12:16 +01:00
README.md updated README 2019-02-11 23:16:29 +01:00

Nginx

Supported

Only Nginx 1.10.3 and Debian Stretch.

Other versions might work but are not tested.

Parameters and defaults

DNS resolver have to be defined in the resolver array. Defaults:

resolver:
  - 8.8.8.8
  - 8.8.4.4

All other configuration is to be placed inside the nginx dict.

# name: *upstreamconfig*, see below for definition
upstreams: {}

# name: *vhostconfig*, see below for definition
vhosts: {}

# force all traffic on ssl, except letsencrypt challenges
force_ssl: True

upstreamconfig:

# array of upstream servers
server: 
  -
    # can be "unix:/path/to/socket" or "foo.bar" or "foo.bar:443"
    address: *mandatory*

    # monitor dns for changes
    resolve: true

vhosts:

# array of server names, example: foo.bar
servername: []

# set this server as default
default_server: False

listen:
	ssl: True
	ssl_port: 443
	nossl: False
	nossl_port: 80

# example: "https://upstream". If set to None no reverse proxy will be set up.
backend: None

# sets ssl certs to letsencrypt paths and enable letsencrypt for this vhost
letsencrypt: False

# array of locations, see below
locations: [*locationconfig*, .. ]

locationconfig:

# a match definition, for example "/", see nginx docu: https://nginx.org/en/docs/http/ngx_http_core_module.html#location
match: ''

# an absolut unix path, only set if not none
alias: None