foreman-export-nginx 0.0.27 → 0.0.28

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,10 +8,9 @@ server {
8
8
  access_log <%= log %>/<%= app %>-nginx-access.log combined buffer=0k;
9
9
  error_log <%= log %>/<%= app %>-nginx-error.log;
10
10
 
11
- listen 80;
11
+ listen 80 <%= default_server ? 'default_server' : '' %>;
12
12
  server_name <%= additional_domains %> <%= app %>.<%= base_domain %>;
13
13
 
14
-
15
14
  <% if use_ssl %>
16
15
  listen 443 ssl;
17
16
 
@@ -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.27'
7
+ gem.version = '0.0.28'
8
8
  gem.authors = ["Pete Keen"]
9
9
  gem.email = ["pete@bugsplat.info"]
10
10
  gem.description = %q{Export Nginx configs using Foreman}
@@ -22,6 +22,7 @@ module Foreman
22
22
  ssl_key_path = env_var('SSL_KEY_PATH')
23
23
  force_ssl = !!env_var('FORCE_SSL')
24
24
  force_domain = env_var('FORCE_DOMAIN')
25
+ default_server = !!env_var('DEFAULT_SERVER')
25
26
 
26
27
  ports = []
27
28
  1.upto(engine.formation[name]) do |num|
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.27
4
+ version: 0.0.28
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-08-11 00:00:00.000000000 Z
12
+ date: 2013-12-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: foreman