lib/soks.rb in Soks-0.0.5 vs lib/soks.rb in Soks-0.0.6

- old
+ new

@@ -20,18 +20,21 @@ Thread.abort_on_exception = true Socket.do_not_reverse_lookup = true # These are the default settings. Can be overriden in the call to soks-servlet.rb#start_wiki $SETTINGS = { - :name => 'test', + :name => 'A Soks Wiki', :description => 'A Soks Wiki', :root_directory => 'soks-wiki', :check_files_every => 60, # Seconds :url => 'http://localhost:8000', :port => 8000, + :home_page => 'Home Page', :dont_frame_templates => ['print','rss'], - :strict_html_removal => true, # True to prevent users from adding html. - :authenticators => [ [ %r{/(view|rss|print|find|meta)/.*}, WEBrick::HTTPAuth::NoAuthenticationRequired.new ], + :force_no_cache => false, # Adds headers to restrict the cacheing of pages + :redcloth_hard_breaks => false, # Set Redcloth to use hard breaks + :server_type => WEBrick::SimpleServer, # Could be WEBrick::Daemon if you wish to fork + :authenticators => [ [ %r{/(view|rss|print|find|meta|attachment)/.*}, WEBrick::HTTPAuth::NoAuthenticationRequired.new ], # [ %r{/upload/.*}, WEBrick::HTTPAuth::NotPermitted.new ], # [ %r{/(edit|save)/home page}, WEBrick::HTTPAuth::SiteWidePassword.new('password','You need to enter the site wide password to edit the home page') ], # [ %r{/(view|edit|save)/private.*},WEBrick::HTTPAuth::BasicAuth.new( :UserDB => htpasswd, :Realm => realm ) ], # See webrick documentation [ %r{.*}, WEBrick::HTTPAuth::AskForUserName.new( 'No password, just enter a name') ] ] \ No newline at end of file