liquid_feedback_frontend
diff config/example.lua @ 733:9c88e513a8f7
Renamed example config to example.lua
author | bsw |
---|---|
date | Thu Jun 28 17:24:18 2012 +0200 (2012-06-28) |
parents | config/default.lua@3a61d21618f6 |
children | 9d104952554a |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/config/example.lua Thu Jun 28 17:24:18 2012 +0200 1.3 @@ -0,0 +1,108 @@ 1.4 +-- ======================================================================== 1.5 +-- MANDATORY CONFIG OPTIONS (MUST BE SET!) 1.6 +-- ======================================================================== 1.7 + 1.8 +-- Name of this instance, defaults to name of config file 1.9 +-- ------------------------------------------------------------------------ 1.10 +config.instance_name = "Instance name" 1.11 + 1.12 +-- Information about service provider (HTML) 1.13 +-- ------------------------------------------------------------------------ 1.14 +config.app_service_provider = "Snake Oil<br/>10000 Berlin<br/>Germany" 1.15 + 1.16 +-- A rocketwiki formatted text the user has to accept while registering 1.17 +-- ------------------------------------------------------------------------ 1.18 +config.use_terms = "=== Terms of Use ===" 1.19 + 1.20 +-- Checkbox(es) the user has to accept while registering 1.21 +-- ------------------------------------------------------------------------ 1.22 +config.use_terms_checkboxes = { 1.23 + { 1.24 + name = "terms_of_use_v1", 1.25 + html = "I accept the terms of use.", 1.26 + not_accepted_error = "You have to accept the terms of use to be able to register." 1.27 + } 1.28 +} 1.29 + 1.30 +-- ======================================================================== 1.31 +-- Optional config options 1.32 +-- Remove leading -- to enable a option 1.33 +-- ======================================================================== 1.34 + 1.35 +-- Connection information for the LiquidFeedback database 1.36 +-- ------------------------------------------------------------------------ 1.37 +-- config.database = { engine='postgresql', dbname='liquid_feedback' } 1.38 + 1.39 +-- Absolute base url of application 1.40 +-- ------------------------------------------------------------------------ 1.41 +-- config.absolute_base_url = "http://example.com/" 1.42 + 1.43 +-- List of enabled languages, defaults to available languages 1.44 +-- ------------------------------------------------------------------------ 1.45 +-- config.enabled_languages = { 'en', 'de', 'eo', 'el', 'hu' } 1.46 + 1.47 +-- Default language, defaults to "en" 1.48 +-- ------------------------------------------------------------------------ 1.49 +-- config.default_lang = "en" 1.50 + 1.51 +-- after how long is a user considered inactive and the trustee will see warning 1.52 +-- notation is according to postgresql intervals 1.53 +-- ------------------------------------------------------------------------ 1.54 +-- config.delegation_warning_time = '6 months' 1.55 + 1.56 +-- Sender and prefix of all automatic mails, default to "[Liquid Feedback] " 1.57 +-- ------------------------------------------------------------------------ 1.58 +-- config.mail_subject_prefix = "[LiquidFeedback] " 1.59 +-- config.mail_envelope_from = "liquid-support@example.com" 1.60 +-- config.mail_from = "LiquidFeedback" 1.61 +-- config.mail_reply_to = "liquid-support@example.com" 1.62 + 1.63 +-- Supply custom url for avatar/photo delivery 1.64 +-- ------------------------------------------------------------------------ 1.65 +-- config.fastpath_url_func = nil 1.66 + 1.67 +-- Local directory for database dumps offered for download 1.68 +-- ------------------------------------------------------------------------ 1.69 +-- config.download_dir = nil 1.70 + 1.71 +-- Special use terms for database dump download 1.72 +-- ------------------------------------------------------------------------ 1.73 +-- config.download_use_terms = "=== Download use terms ===\n" 1.74 + 1.75 +-- Set public access level 1.76 +-- Available options: false, "anonymous", "pseudonym", "full" 1.77 +-- ------------------------------------------------------------------------ 1.78 +-- config.public_access = "full" 1.79 + 1.80 +-- Use custom image conversion 1.81 +-- ------------------------------------------------------------------------ 1.82 +--config.member_image_content_type = "image/jpeg" 1.83 +--config.member_image_convert_func = { 1.84 +-- avatar = function(data) return extos.pfilter(data, "convert", "jpeg:-", "-thumbnail", "48x48", "jpeg:-") end, 1.85 +-- photo = function(data) return extos.pfilter(data, "convert", "jpeg:-", "-thumbnail", "240x240", "jpeg:-") end 1.86 +--} 1.87 + 1.88 +-- Integration of Etherpad 1.89 +-- ------------------------------------------------------------------------ 1.90 +--config.etherpad = { 1.91 +-- base_url = "http://example.com:9001/", 1.92 +-- api_base = "http://localhost:9001/", 1.93 +-- api_key = "mysecretapikey", 1.94 +-- group_id = "mygroupname", 1.95 +-- cookie_path = "/" 1.96 +--} 1.97 + 1.98 +-- WebMCP accelerator 1.99 +-- uncomment the following two lines to use C implementations of chosen 1.100 +-- functions and to disable garbage collection during the request, to 1.101 +-- increase speed: 1.102 +-- ------------------------------------------------------------------------ 1.103 +-- require 'webmcp_accelerator' 1.104 +-- collectgarbage("stop") 1.105 + 1.106 + 1.107 +-- ======================================================================== 1.108 +-- Do main initialisation (DO NOT REMOVE THIS SECTION) 1.109 +-- ======================================================================== 1.110 + 1.111 +execute.config("init")