Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samdoran/ansible-role-nginx
https://github.com/samdoran/ansible-role-nginx
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/samdoran/ansible-role-nginx
- Owner: samdoran
- Created: 2016-09-19T21:56:45.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2021-07-27T20:20:56.000Z (over 3 years ago)
- Last Synced: 2024-11-01T09:14:32.746Z (about 2 months ago)
- Language: Jinja
- Size: 21.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Nginx
========Install Nginx from the official Nginx repository.
This role clears the default nginx configuration and looks for additional configuration files in `/etc/nginx/conf.d/*.conf`. Roles that need Nginx should include their own Nginx config file and place it in this directory with a `.conf` extension.
Requirements
------------Open appropriate ports in the firewall.
Role Variables
--------------Include config file that redirects traffic to `nginx_http_port` to HTTPS:
nginx_redirect_http: False
Define ports:
nginx_http_port: 80
nginx_https_port: 443Default server name:
nginx_server_name: "{{ ansible_fqdn }}"TLS Configuration:
nginx_tls_enabled: no
nginx_tls_cert_path: /etc/pki/tls/certs
nginx_tls_key_path: /etc/pki/tls/private
nginx_tls_filename: "{{ ansible_fqdn }}"Define log directories:
nginx_log_dir: /var/log/nginx
nginx_error_log: error.log
nginx_access_log: access.logChange SELinux settings to allow Nginx to bind to other ports (CentOS >= 6.6):
nginx_selinux_ports:
- context_t: "http_port_t"
protocol: tcp
port: "9200"License
-------Apache 2.0