foreman-export-nginx 0.0.34 → 0.0.35

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 99d7540631ca4a0ef5c0d06832eed8759e116402
4
- data.tar.gz: e9dfe483dbecca5f55ec6fdd1aefe23c0cf540ae
3
+ metadata.gz: b7094abd04c92e4cc645ee2e121738a50486326e
4
+ data.tar.gz: c01894c83a75b24487fa57776d08c9ca32b36bce
5
5
  SHA512:
6
- metadata.gz: 50664d415ab48df06039173ba25a21ddb6457a10f2102466342196006bd6b823742cf1a77406b8394d9f7ffdb8f235bff4d8232ca65e15c965b9aed417d74523
7
- data.tar.gz: 67b6d927cbacd25b2b45a89e2aff7986da4dc7cc1b7eee3e90da021d2fd6e0127bcae338113866b27d06ca6d5932b3b27f110c46433b59cd36e9a95b3c1b0589
6
+ metadata.gz: 86285b500720e02c0065f600a0f914ad10e44c32aa16e808ebab9cc09a8f44ab0e125d2cde9dc768344300e17ece7937b1bff0b8b0cbdbf6c975650b1b295880
7
+ data.tar.gz: bf40b223ce7c0782709c5a28b55371e4c9ad525b9e5ab857539dffb269e1e527e5d584dfbb1c565f3b433948870c4dba7c884b52539f092a178ecf08da4c7195
@@ -41,13 +41,15 @@ server {
41
41
  <% end %>
42
42
 
43
43
  <% if ports.length > 0 %>
44
- try_files $uri/index.html $uri.html $uri @app;
44
+ try_files $uri/index.html $uri/index $uri.html $uri @app;
45
45
  <% else %>
46
- try_files $uri/index.html $uri.html $uri;
46
+ try_files $uri/index.html $uri/index $uri.html $uri;
47
47
  <% end %>
48
48
 
49
49
  location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|xml)$ {
50
+ <% if ports.length > 0 %>
50
51
  try_files $uri @app;
52
+ <% end %>
51
53
  add_header Cache-Control public;
52
54
  expires max;
53
55
  }
@@ -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.34'
7
+ gem.version = '0.0.35'
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.34
4
+ version: 0.0.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pete Keen