Login
or
register
Basic Configuration
Anonymous users must enter
captcha
below.
Page Name (for URL)
Page Title
Advanced Fields
Category
Don't put anything here
Don't put anything here
Prototype
Page Content
<span class="teaser"> Here you learn how to do basic configuration of your new Sputnik. </span> After following the instructions on the [[Installation]] page, your Sputnik should be ready to run. However, there are a few changes that you might want to make. Sputnik uses a number of configuration parameters, which can be set in two places. Then see [[Configuration]] for more configuration options. ## Bootstrapping Parameters The first place is the launcher script (your sputnik.ws, sputnik.cgi or sputnik.fcgi file). For instance, your sputnik.cgi may look like this: #! /bin/bash /home/yuri/sputnik/bin/wsapi.cgi require('sputnik') return sputnik.new_wsapi_run_fn{ VERSIUM_PARAMS = { '/home/yuri/sputnik/wiki-data/' }, BASE_URL = '/usr/lib/cgi-bin/sputnik.cgi', PASSWORD_SALT = 'dQyceRONUnA2yAB9LwpNxOq22C0NtxCxe1ziIdVs', TOKEN_SALT = 'rmlPMNPn941wJioBLff5DHsHyRP7UBqbOBRqewEe', } This script sets four configuration parameters, of which three are required: VERSIUM_PARAMS = { '/tmp/sputnik/wiki-data/' } BASE_URL = '/usr/lib/cgi-bin/sputnik.cgi', TOKEN_SALT = 'rmlPMNPn941wJioBLff5DHsHyRP7UBqbOBRqewEe', **VERSIUM\_PARAMS** tells sputnik how to access storage. In the simplest case, it's just a path to a directory where the data will be stored. **BASE\_URL** tells Sputnik how to create links that point back to itself. **TOKEN\_SALT** is a secret code that will be used for encryption in cookies, etc. The one in your sputnik.cgi file will be different - it was generated randomly. Finally, the optional **PASSWORD\_SALT** parameter is a secret code used for hashing passwords. If you later want to reuse your password file on a different Sputnik installation, you will need to use the same PASSWORD\_TOKEN. ## The Configuration Node The second place where you can configure things is the [[sputnik/config]] node. Login as "Admin" (register as "Admin" if you haven't done so yet), then edit that node. In that node you can set: **NICE\_URL**: set to the "nice" form of your URL (see [[Nicer URLs]] for details). **DOMAIN**: must be set to your domain for RSS to work. **SITE\_TITLE**: you can change this from "My New Wiki" to something more informative. **MAIN\_COLOR**: change the color scheme of your wiki by setting this parameter to different numbers betwee 0 and 360. (See [[Color Schemes]].) **BODY\_BG\_COLOR**: set this parameter to change the background color (you can set it to an HTML color name such as "white" or to a hexadecimal RBG code, such as "#f0f0f0"). For more configuration parameters, see [[Configuration]].
Don't put anything here
Don't put anything here
About This Edit
Minor Edit
Edit Summary
Don't put anything here
Don't put anything here
Start
Introduction
Features
Demos
Why Lua?
What is Kepler?
Sightings
License
Sandbox
Whodunit?
Install
Installation
Basic Configuration
URLs
Custom Installation
Deployment
Troubleshooting
Problems
Tweak
Configuration
More Parameters
Permissions
Styles
Templates
I18n
Plugins
Storage
Markup
Authentication
Spam
Track
News
Releases
Project Planning
Recent Wiki Edits
Edits by Recent Users
Talk
Mailing List(s)
This Wiki
Report a Bug
Grok
Basic Concepts
Saci
Versium
Actions
WSAPI
LuaRocks
Hack
Source
Rocks
Architecture
Guided Tour
"Earth"
Coding Standard
Tasks
Powered by
Sputnik
|
XHTML 1.1