Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gsterjov/openshift-nginx-cartridge
An Nginx Cartridge for OpenShift
https://github.com/gsterjov/openshift-nginx-cartridge
Last synced: 15 days ago
JSON representation
An Nginx Cartridge for OpenShift
- Host: GitHub
- URL: https://github.com/gsterjov/openshift-nginx-cartridge
- Owner: gsterjov
- Archived: true
- Created: 2013-08-11T12:35:12.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-11-17T11:07:11.000Z (almost 9 years ago)
- Last Synced: 2024-08-01T03:13:50.958Z (3 months ago)
- Language: Shell
- Size: 46.9 MB
- Stars: 44
- Watchers: 15
- Forks: 49
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- stars - gsterjov/openshift-nginx-cartridge
README
## Openshift Nginx Cartridge
A cartridge for openshift that enables Nginx to be used as the web server.
### Installation
To install this cartridge use the cartridge reflector when creating an app
rhc create-app myapp http://cartreflect-claytondev.rhcloud.com/reflect?github=gsterjov/openshift-nginx-cartridge
### Configuration
The cartridge installs two config files. One at
$OPENSHIFT_NGINX_DIR/conf/nginx.conf
which gets loaded by the executable
and sets up specific app configuration such as logs and pid files.The config then includes another nginx.conf which must exist at
$OPENSHIFT_REPO_DIR/nginx.conf
. This config should
contain all your server specific set up including which ip/port to listen on.The repo nginx.conf is actually seen in your repository as
nginx.conf.erb
so environment variables can be used
in the config. Every time the server starts it first processesnginx.conf.erb
.A
public/
folder is included where static content is served by default. However, as can be seen in thenginx.conf.erb
file it
is entirely configurable and only exists as a form of documentation.