Mirror HanXHX/ansible-nginx dari GitHub.
 
 
Go to file
Emilien Mantel 1071881ac2 Merge branch 'master' of https://github.com/HanXHX/ansible-nginx
Conflicts:
	tasks/vhost.yml
2016-03-05 11:39:29 +01:00
defaults Fix default var nginx_custom_http 2016-01-26 11:19:51 +01:00
doc Each vhost can have his own filename 2016-03-04 16:38:40 +01:00
files/web Moving files 2015-07-15 15:42:32 +02:00
handlers Only reload nginx 2015-11-03 14:38:47 +01:00
meta Min ansible version is now 2.0 (closes #10) 2016-01-21 17:10:36 +01:00
tasks Fix deprecation warnings 2016-03-05 11:37:37 +01:00
templates/etc/nginx Fix HTTP2 syntax error 2016-03-05 10:59:20 +01:00
tests Merge branch 'master' of https://github.com/HanXHX/ansible-nginx 2016-03-05 11:39:29 +01:00
vars Apps vhosts should without root and created dirs 2016-01-22 09:46:43 +01:00
.gitignore Gitignore *.retry 2016-03-05 11:06:34 +01:00
.travis.yml Test travis docker 2015-10-07 19:31:12 +02:00
LICENSE Initial commit 2015-07-15 12:12:06 +02:00
README.md Remove duplicate link 2016-01-25 17:02:17 +01:00
Vagrantfile Use official debian box and DHCP 2016-03-05 10:46:46 +01:00

README.md

Nginx for Debian Ansible role

Ansible Galaxy Build Status

Install and configure Nginx on Debian.

Features:

  • SSL/TLS "hardened" support
  • Manage basic auth on vhost / location
  • Proxy + Upstream
  • Fast PHP configuration
  • Preconfigured vhost templates (should work on many app)
  • Auto-configure HTTP2 on SSL/TLS vhosts

Requirements

None. If you set true to nginx_backports, you must install backports repository before lauching this role.

Role Variables

Packaging

  • nginx_apt_package: APT nginx package (try: apt-cache search ^nginx)
  • nginx_backports: Install nginx from backport repository (bool)

Shared

  • nginx_root: root directory where you want to have your files
  • nginx_log_dir: log directory (if you change it, don't forget to change logrotate config)
  • nginx_resolver: list of DNS resolver (default: OpenDNS)
  • nginx_error_log_level: default log level
  • nginx_auto_config_httpv2: boolean, auto configure HTTP2 where possible

Nginx Configuration

  • nginx_user
  • nginx_worker_processes
  • nginx_pid: daemon pid file
  • nginx_events_*: all variables in events block
  • nginx_http_*: all variables in http block
  • nginx_custom_http: instructions list (will put data in /etc/nginx/conf.d/custom.conf)

Fine configuration

Vhost configuration

PHP configuration

Upstream Configuration

SSL/TLS Configuration

Basic Auth

Dependencies

None

Example Playbook

See tests/test.yml.

License

GPLv2

Author Information