foreman-export-nginx 0.0.17 → 0.0.18
Sign up to get free protection for your applications and to get access to all the features.
- data/data/export/nginx/nginx.erb +6 -1
- data/foreman-export-nginx.gemspec +1 -1
- metadata +1 -1
data/data/export/nginx/nginx.erb
CHANGED
@@ -9,7 +9,12 @@ server {
|
|
9
9
|
error_log <%= log %>/<%= app %>-nginx-error.log;
|
10
10
|
|
11
11
|
listen 80;
|
12
|
-
server_name <%= app %>.<%= base_domain
|
12
|
+
server_name <%= additional_domains %> <%= app %>.<%= base_domain %>;
|
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;
|
13
18
|
|
14
19
|
<% if use_ssl %>
|
15
20
|
listen 443 ssl;
|
@@ -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.18'
|
8
8
|
gem.authors = ["Pete Keen"]
|
9
9
|
gem.email = ["pete@bugsplat.info"]
|
10
10
|
gem.description = %q{Export Nginx configs using Foreman}
|