rails_pwnerer 0.6.42 → 0.6.43

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v0.6.43. Improved nginx settings for passing client IP through proxy.
2
+
1
3
  v0.6.42. Support for multiple DNS names.
2
4
 
3
5
  v0.6.41. Reduced output during scaffolding.
@@ -35,12 +35,6 @@ class RailsPwnage::App::NginxConfig
35
35
  root #{app_config[:app_path]}/public;
36
36
  client_max_body_size #{app_config[:max_request_mb]}M;
37
37
  location / {
38
- proxy_set_header X-Real-IP $remote_addr;
39
- proxy_set_header Host $host;
40
- proxy_redirect false;
41
- proxy_connect_timeout 2;
42
- proxy_read_timeout 86400;
43
-
44
38
  if (-f $request_filename) {
45
39
  break;
46
40
  }
@@ -51,6 +45,13 @@ class RailsPwnage::App::NginxConfig
51
45
  if (-f $request_filename.html) {
52
46
  rewrite (.*) $1.html break;
53
47
  }
48
+
49
+ proxy_set_header X-Real-IP $remote_addr;
50
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
51
+ proxy_set_header Host $host;
52
+ proxy_redirect false;
53
+ proxy_connect_timeout 2;
54
+ proxy_read_timeout 86400;
54
55
  if (!-f $request_filename) {
55
56
  proxy_pass http://#{app_name}_#{instance_name};
56
57
  break;
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{rails_pwnerer}
5
- s.version = "0.6.42"
5
+ s.version = "0.6.43"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Victor Costan"]
9
- s.date = %q{2009-04-17}
9
+ s.date = %q{2009-04-20}
10
10
  s.default_executable = %q{bin/rpwn}
11
11
  s.description = %q{Rails deployment tool/hack.}
12
12
  s.email = %q{victor@costan.us}
@@ -19,12 +19,12 @@ Gem::Specification.new do |s|
19
19
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Rails_pwnerer", "--main", "README"]
20
20
  s.require_paths = ["lib", "ext"]
21
21
  s.rubyforge_project = %q{rails-pwnage}
22
- s.rubygems_version = %q{1.3.1}
22
+ s.rubygems_version = %q{1.3.2}
23
23
  s.summary = %q{Rails deployment tool/hack.}
24
24
 
25
25
  if s.respond_to? :specification_version then
26
26
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
27
- s.specification_version = 2
27
+ s.specification_version = 3
28
28
 
29
29
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
30
30
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_pwnerer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.42
4
+ version: 0.6.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Costan
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-17 00:00:00 -04:00
12
+ date: 2009-04-20 00:00:00 -04:00
13
13
  default_executable: bin/rpwn
14
14
  dependencies: []
15
15
 
@@ -131,6 +131,8 @@ files:
131
131
  - rails_pwnerer.gemspec
132
132
  has_rdoc: true
133
133
  homepage: http://www.costan.us/rails_pwnage
134
+ licenses: []
135
+
134
136
  post_install_message:
135
137
  rdoc_options:
136
138
  - --line-numbers
@@ -157,9 +159,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
159
  requirements: []
158
160
 
159
161
  rubyforge_project: rails-pwnage
160
- rubygems_version: 1.3.1
162
+ rubygems_version: 1.3.2
161
163
  signing_key:
162
- specification_version: 2
164
+ specification_version: 3
163
165
  summary: Rails deployment tool/hack.
164
166
  test_files: []
165
167