simpleweb/ansible-nginx-unicorn

Name: ansible-nginx-unicorn

Owner: Simpleweb

Description: Nginx installation with Unicorn integration

Forked from: agios/ansible-nginx-unicorn

Created: 2015-06-01 12:52:11.0

Updated: 2014-11-23 23:03:45.0

Pushed: 2015-06-23 14:38:34.0

Homepage: null

Size: 127

Language: null

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Ansible Nginx/Unicorn setup

This Ansible role installs Nginx and generates configuration for Unicorn applications

Requirements

None

Notes

This role does not install or configure Unicorn itself. It is designed to play nicely with a Unicorn role such as Unicorn-RVM.

Role Variables
Example Playbook

The role could be included in a playbook as follows (unicorn-rvm also shown):


ts: application
les:
- role: unicorn-rvm
  rails_apps:
    - { name: 'my_app1', ruby_version: 'ruby-1.9.3' }
    - { name: 'my_app2', ruby_version: 'ruby-2.1.1', root: '/var/test_apps/app2', env: staging }
- role: nginx-unicorn
  nginx_sites:
    - name: 'my_app1'
      server_name: 'my-app1.example.com'
      access_log:
        format: 'main'
      ssl:
        certificate: /etc/ssl/localcerts/my_app1.pem
        certificate_key: /etc/ssl/localcerts/my_app1.key
        sensitive_uris:
          - ^/user/sign_in(.*)
          - ^/user/password(.*)
        access_log:
          format: 'main'
    - name: 'my_app2'
      server_name: 'my-app2.example.com *.mydomain.com'
      root: '/var/test_apps/app2'
      ssl:
        certificate: /etc/ssl/localcerts/my_app2.crt
        certificate_key: /etc/ssl/localcerts/my_app2.key
        ssl_only: true
License

MIT


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.