ansible/nginx-container

Name: nginx-container

Owner: Ansible

Description: Add an nginx service to your Ansible Container project

Created: 2016-12-12 20:16:24.0

Updated: 2017-12-19 13:40:27.0

Pushed: 2017-07-22 15:20:56.0

Homepage: null

Size: 37

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Build Status

nginx-container

Adds an nginx service to your Ansible Container project. Run the following commands to install the service:

t the working directory to your Ansible Container project root
 myproject

stall the service
sible-container install ansible.nginx-container
Requirements
Role Variables

STATIC_ROOT: /static

Path to static content to be served by nginx.

PIDFILE_DIR: /run/nginx

Path where nginx will store the current PID value.

ASSET_PATHS: []

List of paths from which static content will be copied. Content will be copied to {{ STATIC_ROOT }}.

NOTE paths must be valid within the Ansible build container. If you're copying source files, mount the source directory to the build container using –with-volumes.

PROXY: no

When using this role as part of the demo app, nginx needs to proxy the django service, in which case set this to 'yes'.

PROXY_PASS: “”

The address of the backend server accepting the proxied requests. For example: http://django:8080

PROXY_LOCATION: “”

A string containing an optional modifier and a matching pattern. Requests that contain the matching pattern are forwarded to the PROXY_PASS address. For example,~* /(api|static) will forward requests that start with /api ro /static.

Dependencies

None.

Contributing

For convenience, as you're working on changes to this role, you can test by using the following workflow:

mmit your changes
t commit -m

sh your changes 
t push 

t the working directory to tests
 tests 

n a build that installs the role at the most recent commit 
build.sh

A couple of notes:

License

Apache v2

Author Information

See AUTHORS for a list of contributors. Thanks everyone!


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.