Foreman::Export::Nginx
Export Nginx configuration files using Foreman.
Installation
Add this line to your application's Gemfile:
gem 'foreman-export-nginx'
And then execute:
$ bundle
Or install it yourself as:
$ gem install foreman-export-nginx
Usage
nginx-foreman export nginx [additonal options]
There is one requied and several optional environment variables:
BASE_DOMAINrequired The nginxserver_namewill be set toapp_name.base_domain. For example:appname.example.comifBASE_DOMAIN=example.com.ADDITIONAL_DOMAINSany additional domains to listen for.USE_SSLtrue to listen on sslSSL_CERT_PATHpath to the certificate to use for ssl. Optional if you've set up a wildcard cert.SSL_KEY_PATHpath to the certificate key. Required if you specifiedSSL_CERT_PATH.FORCE_SSLtrue to force redirect to SSLFORCE_DOMAINredirect all requests to this domain
Contributing
Email patches to [email protected].
License
MIT