foreman-export-nginx 0.0.18 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,10 +11,6 @@ server {
11
11
  listen 80;
12
12
  server_name <%= additional_domains %> <%= app %>.<%= base_domain %>;
13
13
 
14
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
15
- proxy_set_header X-Forwarded-Proto $scheme;
16
- proxy_set_header Host $http_host;
17
- proxy_redirect off;
18
14
 
19
15
  <% if use_ssl %>
20
16
  listen 443 ssl;
@@ -27,7 +23,7 @@ server {
27
23
  <% if force_ssl %>
28
24
  if ($ssl_protocol = "") {
29
25
  rewrite ^ https://$server_name$request_uri? permanent;
30
- }
26
+ }
31
27
  <% end %>
32
28
 
33
29
  <% end %>
@@ -38,7 +34,13 @@ server {
38
34
 
39
35
  location @app {
40
36
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
37
+ proxy_set_header X-Forwarded-Proto $scheme;
41
38
  proxy_set_header Host $http_host;
39
+ proxy_redirect off;
40
+
41
+ if ($ssl_protocol != "") {
42
+ proxy_set_header HTTPS "on";
43
+ }
42
44
 
43
45
  proxy_pass http://<%= app %>;
44
46
  }
@@ -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.18'
7
+ gem.version = '0.0.19'
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.18
4
+ version: 0.0.19
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: