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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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
eate an empty project directory
dir myproject
t the working directory to the new directory
myproject
itialize the project
sible-contiainer init
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
.
None.
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:
git push
your changes in order for the build to pick them up.Apache v2
See AUTHORS for a list of contributors. Thanks everyone!