regenwolke_autons 0.0.3 → 0.0.4

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: 403e53f32ab51b83ce03fc6daab95230cb765434
4
- data.tar.gz: 5b83454406f6e3e4c8026d5f63a18d1ff7365bb1
3
+ metadata.gz: 99a07b3bf821f18210464ceb1584ea556c8643ee
4
+ data.tar.gz: 56fb518afdd4d8713199462c72e5627df9b8f6fe
5
5
  SHA512:
6
- metadata.gz: c40883dd0de22d0079461582d7a3599888a4719c07693046507e37370c90d26a4eb12ca0f30b0e9b3d88b9acb2283ac7147e343eecd1a7ea3e52cc28824823ac
7
- data.tar.gz: 4ef0f9d92d157e310f6978ba1c6a15ce91e65b664a9eca55c761a83e59df247cf50a1c36a6649c405c023008d29a0b0be4bae9586bd962d00c387246b40e5c8d
6
+ metadata.gz: e71e6dfaa87fc112aec0e32769ef5f3b4d949274e33e847360f761344cb5fc020907daf313dbf6d6c0247b7b71baba8903f05fd56a34ee04769315ae81649cb5
7
+ data.tar.gz: eb15d2472a658cba3a8f1b3b6d1be652c495cfde92ee7e5a3bc0b3c4faa955f2a2ab81f36d66464db339e29edbff46c5b5ff4843259aaf1c3a283a6123594d2b
@@ -44,7 +44,7 @@ module RegenwolkeAutons
44
44
  end
45
45
 
46
46
  def create_config
47
- applications={'regenwolke' => [ENV['PORT'] || 5000]}
47
+ applications={'regenwolke' => ['localhost',[ENV['PORT'] || 5000]]}
48
48
  erb = ERB.new File.read(File.expand_path('../nginx_config.erb', __FILE__))
49
49
  File.write("nginx.config",erb.result(binding))
50
50
  end
@@ -39,11 +39,15 @@ http {
39
39
  # '$request_time $upstream_response_time $pipe';
40
40
 
41
41
 
42
+ server {
43
+ listen 9080;
44
+ return 404;
45
+ }
42
46
 
43
- <% applications.each do |host, ports| %>
47
+ <% applications.each do |host, endpoints| %>
44
48
  upstream <%= host.gsub('.','_') %> {
45
- <% ports.each do |port| %>
46
- server localhost:<%= port %>;
49
+ <% endpoints.each do |(endpoint_host,port)| %>
50
+ server <%= endpoint_host %>:<%= port %>;
47
51
  <% end %>
48
52
  keepalive 50;
49
53
  }
@@ -1,3 +1,3 @@
1
1
  module RegenwolkeAutons
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: regenwolke_autons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dragan Milic