Export Nginx configuration files using Foreman.
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
nginx-foreman export nginx [additonal options]
There is one requied and several optional environment variables:
BASE_DOMAIN
required The nginxserver_name
will be set toapp_name.base_domain
. For example:appname.example.com
ifBASE_DOMAIN=example.com
.ADDITIONAL_DOMAINS
any additional domains to listen for.USE_SSL
true to listen on sslSSL_CERT_PATH
path to the certificate to use for ssl. Optional if you've set up a wildcard cert.SSL_KEY_PATH
path to the certificate key. Required if you specifiedSSL_CERT_PATH
.FORCE_SSL
true to force redirect to SSLFORCE_DOMAIN
redirect all requests to this domain
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request