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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99a07b3bf821f18210464ceb1584ea556c8643ee
|
4
|
+
data.tar.gz: 56fb518afdd4d8713199462c72e5627df9b8f6fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
47
|
+
<% applications.each do |host, endpoints| %>
|
44
48
|
upstream <%= host.gsub('.','_') %> {
|
45
|
-
<%
|
46
|
-
server
|
49
|
+
<% endpoints.each do |(endpoint_host,port)| %>
|
50
|
+
server <%= endpoint_host %>:<%= port %>;
|
47
51
|
<% end %>
|
48
52
|
keepalive 50;
|
49
53
|
}
|