2017-06-03 19:52:57 +00:00
|
|
|
[kamokan]
|
2017-11-11 01:54:21 +00:00
|
|
|
|
|
|
|
################################
|
|
|
|
#connection parameters for Redis
|
|
|
|
################################
|
|
|
|
#server IP address (default: 127.0.0.1)
|
|
|
|
#redis_server = 127.0.0.1
|
|
|
|
|
|
|
|
#server port (default: 6379)
|
|
|
|
#redis_port = 6379
|
|
|
|
|
|
|
|
#connection mode; valid modes are inet or sock (default: sock)
|
2017-04-11 17:10:19 +00:00
|
|
|
redis_mode = inet
|
2017-11-11 01:54:21 +00:00
|
|
|
|
|
|
|
#path to the sock (default: /tmp/redis.sock)
|
|
|
|
#redis_sock = /tmp/redis.sock
|
|
|
|
|
|
|
|
#you can specify a database number for Redis (default: 0)
|
|
|
|
#redis_db = 0
|
|
|
|
|
2017-11-11 02:45:49 +00:00
|
|
|
|
2017-11-11 01:54:21 +00:00
|
|
|
##################
|
|
|
|
#host informations
|
|
|
|
##################
|
|
|
|
#host name clients will connect to (default: 127.0.0.1)
|
|
|
|
#host_name = 127.0.0.1
|
|
|
|
|
|
|
|
#port kamokan is being served on; use from_downstream to get it from the
|
|
|
|
#SERVER_PORT variable as set by the webserver (default: none)
|
2017-05-19 09:01:22 +00:00
|
|
|
host_port = from_downstream
|
2017-11-11 01:54:21 +00:00
|
|
|
|
|
|
|
#path on which kamokan is being served, for example use kamokan/ if you access
|
|
|
|
#it as http://127.0.0.1/kamokan/ (default: /)
|
|
|
|
#host_path = /
|
|
|
|
|
2017-11-11 02:45:49 +00:00
|
|
|
|
2017-11-11 01:54:21 +00:00
|
|
|
######################
|
|
|
|
#execution environment
|
|
|
|
######################
|
|
|
|
#path where the website lives in; for example if your website is in the
|
|
|
|
#html/ directory set this to html (default: none)
|
2017-05-15 08:09:06 +00:00
|
|
|
website_root = html
|
2017-11-11 01:54:21 +00:00
|
|
|
|
|
|
|
#path where the source-highlight library stores its css files
|
|
|
|
#(default: /usr/share/source-highlight)
|
|
|
|
#langmap_dir = /usr/share/source-highlight
|
|
|
|
|
|
|
|
#filename of the css for source-highlight (default: sh_darkness.css)
|
|
|
|
#highlight_css = sh_darkness.css
|
|
|
|
|
2017-11-11 02:45:49 +00:00
|
|
|
|
2017-11-11 01:54:21 +00:00
|
|
|
######################
|
|
|
|
#runtime customization
|
|
|
|
######################
|
|
|
|
#minimum pastie size in bytes - pasties shorter than this will be rejected
|
|
|
|
#(default: 10)
|
|
|
|
#min_pastie_size = 10
|
|
|
|
|
|
|
|
#maximum pastie size in bytes - pasties longer than this will be rejected
|
|
|
|
#(default: 10000)
|
|
|
|
max_pastie_size = 25000
|
|
|
|
|
|
|
|
#maxmimum size of the whole POST request in bytes (default: 1048576)
|
|
|
|
#max_post_size = 1048576
|
|
|
|
|
|
|
|
#maximum expected length for pastie tokens; for example if this is set to 1
|
|
|
|
#then requests to pasties a to z will be accepted, aa, ab, ac... etc will be
|
|
|
|
#rejected (default: 10)
|
|
|
|
#max_token_length = 10
|
|
|
|
|
2017-11-11 02:44:31 +00:00
|
|
|
#whether pasties longer than max_pastie_size should be truncated to the maximum
|
2017-11-11 01:54:21 +00:00
|
|
|
#allowed size and accepted anyways instead of being rejected (default: false)
|
|
|
|
#truncate_long_pasties = false
|
|
|
|
|
2017-11-11 02:44:31 +00:00
|
|
|
#minimum delay in seconds between two pasties in order for the second one to be
|
2017-11-11 01:54:21 +00:00
|
|
|
#accepted and stored (default: 10)
|
|
|
|
#resubmit_wait = 10
|
|
|
|
|
2017-11-11 02:44:31 +00:00
|
|
|
#whether kamokan should store syntax highlighted pasties along with the original;
|
2017-11-11 01:54:21 +00:00
|
|
|
#only the selected pastie language will be pre-cached, and only if it's not
|
|
|
|
#colourless; use this if you can receive potentially large pasties that need
|
|
|
|
#syntax highlighting and are running on slow hardware (default: true)
|
|
|
|
#cache_highlighted = true
|
2017-11-11 02:45:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
########
|
|
|
|
#logging
|
|
|
|
########
|
|
|
|
#log level; valid values in order of decreasing verbosity are:
|
|
|
|
#trace, debug (only for debug builds)
|
|
|
|
#info, warn, err, critical, off (for all builds)
|
|
|
|
#(default: err)
|
|
|
|
#logging_level = err
|
|
|
|
|
|
|
|
#log destination; use - for stdout (default: -)
|
|
|
|
#log_file = -
|