liquid_feedback_frontend
changeset 733:9c88e513a8f7
Renamed example config to example.lua
author | bsw |
---|---|
date | Thu Jun 28 17:24:18 2012 +0200 (2012-06-28) |
parents | 3a61d21618f6 |
children | 9d104952554a |
files | config/default.lua config/example.lua |
line diff
1.1 --- a/config/default.lua Thu Jun 28 17:23:38 2012 +0200 1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 1.3 @@ -1,108 +0,0 @@ 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")
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/config/example.lua Thu Jun 28 17:24:18 2012 +0200 2.3 @@ -0,0 +1,108 @@ 2.4 +-- ======================================================================== 2.5 +-- MANDATORY CONFIG OPTIONS (MUST BE SET!) 2.6 +-- ======================================================================== 2.7 + 2.8 +-- Name of this instance, defaults to name of config file 2.9 +-- ------------------------------------------------------------------------ 2.10 +config.instance_name = "Instance name" 2.11 + 2.12 +-- Information about service provider (HTML) 2.13 +-- ------------------------------------------------------------------------ 2.14 +config.app_service_provider = "Snake Oil<br/>10000 Berlin<br/>Germany" 2.15 + 2.16 +-- A rocketwiki formatted text the user has to accept while registering 2.17 +-- ------------------------------------------------------------------------ 2.18 +config.use_terms = "=== Terms of Use ===" 2.19 + 2.20 +-- Checkbox(es) the user has to accept while registering 2.21 +-- ------------------------------------------------------------------------ 2.22 +config.use_terms_checkboxes = { 2.23 + { 2.24 + name = "terms_of_use_v1", 2.25 + html = "I accept the terms of use.", 2.26 + not_accepted_error = "You have to accept the terms of use to be able to register." 2.27 + } 2.28 +} 2.29 + 2.30 +-- ======================================================================== 2.31 +-- Optional config options 2.32 +-- Remove leading -- to enable a option 2.33 +-- ======================================================================== 2.34 + 2.35 +-- Connection information for the LiquidFeedback database 2.36 +-- ------------------------------------------------------------------------ 2.37 +-- config.database = { engine='postgresql', dbname='liquid_feedback' } 2.38 + 2.39 +-- Absolute base url of application 2.40 +-- ------------------------------------------------------------------------ 2.41 +-- config.absolute_base_url = "http://example.com/" 2.42 + 2.43 +-- List of enabled languages, defaults to available languages 2.44 +-- ------------------------------------------------------------------------ 2.45 +-- config.enabled_languages = { 'en', 'de', 'eo', 'el', 'hu' } 2.46 + 2.47 +-- Default language, defaults to "en" 2.48 +-- ------------------------------------------------------------------------ 2.49 +-- config.default_lang = "en" 2.50 + 2.51 +-- after how long is a user considered inactive and the trustee will see warning 2.52 +-- notation is according to postgresql intervals 2.53 +-- ------------------------------------------------------------------------ 2.54 +-- config.delegation_warning_time = '6 months' 2.55 + 2.56 +-- Sender and prefix of all automatic mails, default to "[Liquid Feedback] " 2.57 +-- ------------------------------------------------------------------------ 2.58 +-- config.mail_subject_prefix = "[LiquidFeedback] " 2.59 +-- config.mail_envelope_from = "liquid-support@example.com" 2.60 +-- config.mail_from = "LiquidFeedback" 2.61 +-- config.mail_reply_to = "liquid-support@example.com" 2.62 + 2.63 +-- Supply custom url for avatar/photo delivery 2.64 +-- ------------------------------------------------------------------------ 2.65 +-- config.fastpath_url_func = nil 2.66 + 2.67 +-- Local directory for database dumps offered for download 2.68 +-- ------------------------------------------------------------------------ 2.69 +-- config.download_dir = nil 2.70 + 2.71 +-- Special use terms for database dump download 2.72 +-- ------------------------------------------------------------------------ 2.73 +-- config.download_use_terms = "=== Download use terms ===\n" 2.74 + 2.75 +-- Set public access level 2.76 +-- Available options: false, "anonymous", "pseudonym", "full" 2.77 +-- ------------------------------------------------------------------------ 2.78 +-- config.public_access = "full" 2.79 + 2.80 +-- Use custom image conversion 2.81 +-- ------------------------------------------------------------------------ 2.82 +--config.member_image_content_type = "image/jpeg" 2.83 +--config.member_image_convert_func = { 2.84 +-- avatar = function(data) return extos.pfilter(data, "convert", "jpeg:-", "-thumbnail", "48x48", "jpeg:-") end, 2.85 +-- photo = function(data) return extos.pfilter(data, "convert", "jpeg:-", "-thumbnail", "240x240", "jpeg:-") end 2.86 +--} 2.87 + 2.88 +-- Integration of Etherpad 2.89 +-- ------------------------------------------------------------------------ 2.90 +--config.etherpad = { 2.91 +-- base_url = "http://example.com:9001/", 2.92 +-- api_base = "http://localhost:9001/", 2.93 +-- api_key = "mysecretapikey", 2.94 +-- group_id = "mygroupname", 2.95 +-- cookie_path = "/" 2.96 +--} 2.97 + 2.98 +-- WebMCP accelerator 2.99 +-- uncomment the following two lines to use C implementations of chosen 2.100 +-- functions and to disable garbage collection during the request, to 2.101 +-- increase speed: 2.102 +-- ------------------------------------------------------------------------ 2.103 +-- require 'webmcp_accelerator' 2.104 +-- collectgarbage("stop") 2.105 + 2.106 + 2.107 +-- ======================================================================== 2.108 +-- Do main initialisation (DO NOT REMOVE THIS SECTION) 2.109 +-- ======================================================================== 2.110 + 2.111 +execute.config("init")