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.
- data/data/export/nginx/nginx.erb +7 -5
- data/foreman-export-nginx.gemspec +1 -1
- metadata +1 -1
data/data/export/nginx/nginx.erb
CHANGED
@@ -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.
|
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}
|