Ansible role to install nginx.
None.
nginx_application_dir
: The directory of the project containing the application. Example: /var/www/django_appnginx_server_name
: The hostname of the server. Example: example.com
nginx_config_dir
: The directory to be used for config info. Default: /etc/nginxnginx_log_dir
: The directory to store logs. Default: /var/log/nginxnginx_user_name
: The user account to run nginx under. Default: nginxnginx_group_name
: The group to run nginx under. Default: nginxnginx_worker_processes
: The number of workers to instantiate. Default: 2nginx_static_files_expires
: Expires time for static files. Default: 10d.nginx_hashed_static_files
: Whether static files are hashed. Default: Falsenginx_hashed_static_files_expires
: Expiration for hashed static files. Default: max
- The ScorpionResponse.supervisord role will be use to install supervisord and run nginx with that.
- The ScorpionResponse.gunicorn role will be used to run gunicorn.
Example usage:
- hosts: all
roles:
- { role: ScorpionResponse.nginx }
BSD