swizzler/cherrypy.config.example
The Dod d959492b2b Basic auth (existing instannces: read commit text)
First, chill:
After you pull this, your current installation is supposed to
work fine *as is* (please let me know if it doesn't).

Nevertheless, it is recommended to enable basic auth by adding
these 2 lines to the `[swizzler]` section of `cherrypy.config`
(also documented at `cherrypy.config.example`)

    browser_user: 'someuser'
    browser_password: 'somepassword'

User and password don't need to be too long and funky
(or have anything to do with the user:pasword at rpc_url).
It's just a line of defense against [for example] trojans
who may not have significant file system rights,
but can still TCP-connect to localhost ;)

Existng apps should also `chmod 600 cherrypy.config`
(running `/.install.sh` again will do this as well),
because it would now contain a plaintext password
(and we don't want trojans yada yada).

Swizzle safely.
2014-04-01 19:33:13 +07:00

27 lines
790 B
Plaintext

[global]
server.socket_host: '127.0.0.1'
server.socket_port: 7919 # SWIZ on a phone keypad :)
[swizzler]
rpc_url: 'http://user:pwd@127.0.0.1:28332' # change to rpcuser and rpcpassword from ~/.twister/twister.conf
num_messages: 23 # number of messages per page
num_trending_tags: 42 # let's party
hash_salt: 'RANDOM'
### Optional (but highly recommended):
### Uncomment and edit these lines to protect Swizzler with basic browser auth
### and block [e.g.] trojans from reading your DMs etc.
#browser_user: 'myeasytorememberuser'
#browser_password: 'myeasytorememberpassword'
[/]
tools.staticdir.root: "/PATH/HERE/static"
[/favicon.ico]
tools.staticfile.on: True
tools.staticfile.filename: "/PATH/HERE/static/favicon.ico"
[/assets]
tools.staticdir.on: True
tools.staticdir.dir: "assets"