Configuration

Configuring Sqwee

Themes

To change the theme for your Sqwee pages, first place your CSS file in the themes/ direction. A good starting point is to copy one of the provided themes and go from there.
Then edit config/config.rb and change the theme to the name of your CSS file, without the .css extension:
CONFIG = {
	'title' => 'Sqwee',
	'theme' => 'mytheme'
}

Title

To change the title of your Sqwee pages, change the title attribute in the config/config.rb file.
CONFIG = {
	'title' => 'My Little Notebook',
	'theme' => 'mytheme'
}

Configuring Lighttpd

Port number

The default port is 8000. Change the following line in config/lighttpd.conf:

server.port = 8000

To whichever port you would like.

Password protection

  1. Remove the '#' from the following lines:

    #auth.backend               = "plain"
    #auth.backend.plain.userfile = "/full/path/to/config/.password"
    #auth.require               = ( "/" =>
    #                               (
    #                                 "method"  => "digest",
    #                                 "realm"   => "Sqwee",
    #                                 "require" => "valid-user"
    #                               ))
    			
  2. Change the path to the password file to match the actual location of the config/.password file. This needs to be the full path.
    For example:
    #auth.backend.plain.userfile = "/var/www/html/sqwee/config/.password"
    
  3. Edit the config/.password file. The format is:

    username:password

  4. Start or restart the server:

    ./start_server