0.0
Low commit activity in last 3 years
No release in over a year
A kind of Rack-Rscript web server which facilitates static files, cookie based authentication, and private pages.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.5, >= 1.5.0
~> 1.4, >= 1.4.0
~> 0.7, >= 0.7.2
 Project Readme

Dandelion_s1 now uses cookie based authentication

Dandelion_s1 is built upon Rack-Rscript and facilitates static files, coookie based authentication, and private pages.

Example

# file: ds1.ru

require 'dandelion_s1'

use Rack::Static, :urls => ['/xsl', '/dynarex'], :root => 'www'
use Rack::Session::Cookie, :key => 'rack.session',
  :expire_after => 2592000,
  :secret => 'change_me'

h = {
  pkg_src: 'http://rorbuilder.info/r',
  log_file: '/tmp/ds1.log',
  rsc_host: 'rse',
  rsc_package_src: 'http://yoursite.com',
  debug: true
}

run DandelionS1.new(h)

Running the example

rackup ds1.ru -p 3003

Then point your browser to http://127.0.0.1:3003/do/r/hello and it should request a username and password. Enter the username user and password 0rang3. The date and time should then be observed on the web page.

Options

  • pkg_src This is the URL to the web server which has the RSF package files
  • static (optional) Directories or files in the root directory which are to be accessible from this web server
  • access (optional) Private pages only a specific user can access
  • root (optional) The web server root directory for serving static files.

Note: The rorbuilder.info domain used in this example is no longer owned by me, however I still use that domain name locally on my intranet.

Resources

rack dandelion_s1 dandelions1 dandelion cookies cookie session