Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed links

  • Loading branch information...
commit 620c77a4ce4ef7029722c7fba3e9865bfa8ccca5 1 parent af007be
@mkristian authored
View
8 README.textile
@@ -1,12 +1,14 @@
h1. Enforce SSL for you controllers
-p. this is derived from the http://github.org/rails/ssl_requirement:rails/ssl_requirement and adopted a more strict approach: security everything and open where needed.
+p. with the advent of hijacking tools for dummies "firesheep":http://codebutler.github.com/firesheep/ the need for securing your sessions with ssl is there.
-p. info about the actual gem please look into the directory http://github.org/mkristian/ixtlan-guard/gem:enforce-ssl-gem
+p. this is derived from the "rails/ssl_requirement":http://github.org/rails/ssl_requirement and adopted a more strict approach: *secure everything and open it where needed*.
+
+p. info about the actual gem please look into the directory "enforce-ssl-gem":http://github.org/mkristian/ixtlan-guard/gem
h2. demo rails application
-p. the http://github.org/mkristian/ixtlan-guard/gem:demo is a sample rails3 application with integration tests. see readme how to start the application and what limitations apply.
+p. the "demo":http://github.org/mkristian/ixtlan-guard/gem is a sample rails3 application with integration tests. see readme how to start the application and what limitations apply.
h2. run all the tests + integrations-tests in one go
View
8 enforce-ssl-gem/README.textile
@@ -1,8 +1,8 @@
h1. Enforce SSL for you controllers
-p. this is derived from the http://github.org/rails/ssl_requirement:rails/ssl_requirement and adopted a more strict approach: security everything and open where needed.
+p. this is derived from the "rails/ssl_requirement":http://github.org/rails/ssl_requirement and adopted a more strict approach: *secure everything and open it where needed*.
-p. info about the actual gem please look into the directory http://github.org/mkristian/ixtlan-guard/gem:enforce-ssl-gem
+p. info about the actual gem please look into the directory "enforce-ssl-gem":http://github.org/mkristian/ixtlan-guard/gem
h2. usage
@@ -15,7 +15,7 @@ all requests which comes in as http will be redirected to the https url obeying
h3. configure the ssl port
-p configure the enforced ssl port with (default: 443)
+p configure the enforced ssl port with (default => { development => 3000, production => 443)
bc. config.ssl_port = 8443
@@ -25,7 +25,7 @@ h3. using a webserver which listens to http + https
p. if your Gemfile allows to JRuby as interpreter then you can use the *jetty-run* from the *ruby-maven* gem (jruby only) to have both an http and an https port listing for requests.
-p. webrick can handle ssl as well here a blog which explains how to get ssl working for http://www.nearinfinity.com/blogs/chris_rohr/configuring_webrick_to_use_ssl.html:"webrick and rails3". but you have *only* ssl then !
+p. webrick can handle ssl as well here a blog which explains how to get ssl working for "webrick and rails3":http://www.nearinfinity.com/blogs/chris_rohr/configuring_webrick_to_use_ssl.html. but you have *only* ssl then !
p. maybe other servers can offer you both ssl and none-ssl . . .
View
13 enforce-ssl-gem/enforce-ssl.gemspec
@@ -19,14 +19,15 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rake', '0.8.7'
s.post_install_message = <<-TEXT
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-configure the enforced ssl port with (default: 443)
+- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+configure the enforced ssl port with
+(default => { development => 3000, production => 443 }):
config.ssl_port = 8443
-for development you can do that in 'config/environments/development.rb'. you
-can use 'jetty-run' from 'ruby-maven' gem (jruby only) to have both an http
-and an https port listing for requests.
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+for development you can do that in 'config/environments/development.rb'.
+you can use 'jetty-run' from 'ruby-maven' gem (jruby only) to have both
+an http and an https port listing for requests.
+- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TEXT
end
Please sign in to comment.
Something went wrong with that request. Please try again.