foreman-export-nginx 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -1
- data/data/export/nginx/nginx.erb +6 -0
- data/foreman-export-nginx.gemspec +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -24,9 +24,10 @@ There is one requied and several optional environment variables:
|
|
24
24
|
|
25
25
|
* `BASE_DOMAIN` **required** The nginx `server_name` will be set to `app_name.base_domain`. For example: `appname.example.com` if `BASE_DOMAIN=example.com`.
|
26
26
|
* `ADDITIONAL_DOMAINS` any additional domains to listen for.
|
27
|
-
* `USE_SSL` listen on ssl
|
27
|
+
* `USE_SSL` true to listen on ssl
|
28
28
|
* `SSL_CERT_PATH` path to the certificate to use for ssl. Optional if you've set up a wildcard cert.
|
29
29
|
* `SSL_KEY_PATH` path to the certificate key. Required if you specified `SSL_CERT_PATH`.
|
30
|
+
* `FORCE_SSL` true to force redirect to SSL
|
30
31
|
|
31
32
|
## Contributing
|
32
33
|
|
data/data/export/nginx/nginx.erb
CHANGED
@@ -18,6 +18,12 @@ server {
|
|
18
18
|
ssl_certificate <%= ENV['SSL_CERT_PATH'] %>;
|
19
19
|
ssl_certificate_key <%= ENV['SSL_KEY_PATH'] %>;
|
20
20
|
<% end %>
|
21
|
+
|
22
|
+
<% if ENV['FORCE_SSL'] != '' %>
|
23
|
+
if ($ssl_protocol = "") {
|
24
|
+
rewrite ^ https://$server_name$request_uri? permanent;
|
25
|
+
}
|
26
|
+
<% end %>
|
21
27
|
|
22
28
|
<% end %>
|
23
29
|
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = "foreman-export-nginx"
|
7
|
-
gem.version = '0.0.
|
7
|
+
gem.version = '0.0.16'
|
8
8
|
gem.authors = ["Pete Keen"]
|
9
9
|
gem.email = ["pete@bugsplat.info"]
|
10
10
|
gem.description = %q{Export Nginx configs using Foreman}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman-export-nginx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.16
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: foreman
|