liquid_feedback_frontend

view config/example.lua @ 806:63cb12b3f1f2

Optional disabling of garbage collection only in cgi mode
author bsw
date Tue Jul 03 23:34:06 2012 +0200 (2012-07-03)
parents 0946d848a3f4
children 652c318560f8
line source
1 -- ========================================================================
2 -- MANDATORY (MUST BE SET!)
3 -- ========================================================================
5 -- Information about service provider (HTML)
6 -- ------------------------------------------------------------------------
7 config.app_service_provider = "Snake Oil<br/>10000 Berlin<br/>Germany"
9 -- A rocketwiki formatted text the user has to accept while registering
10 -- ------------------------------------------------------------------------
11 config.use_terms = "=== Terms of Use ==="
13 -- Checkbox(es) the user has to accept while registering
14 -- ------------------------------------------------------------------------
15 config.use_terms_checkboxes = {
16 {
17 name = "terms_of_use_v1",
18 html = "I accept the terms of use.",
19 not_accepted_error = "You have to accept the terms of use to be able to register."
20 },
21 -- {
22 -- name = "extra_terms_of_use_v1",
23 -- html = "I accept the extra terms of use.",
24 -- not_accepted_error = "You have to accept the extra terms of use to be able to register."
25 -- }
26 }
28 -- Location of the rocketwiki binaries
29 -- ------------------------------------------------------------------------
30 config.formatting_engine_executeables = {
31 rocketwiki= "/opt/rocketwiki-lqfb/rocketwiki-lqfb",
32 compat = "/opt/rocketwiki-lqfb/rocketwiki-lqfb-compat"
33 }
35 -- Absolute base url of application
36 -- ------------------------------------------------------------------------
37 config.absolute_base_url = "http://example.com/"
39 -- Name of this instance, defaults to name of config file
40 -- ------------------------------------------------------------------------
41 config.instance_name = "Instance name"
43 -- Connection information for the LiquidFeedback database
44 -- ------------------------------------------------------------------------
45 config.database = { engine='postgresql', dbname='liquid_feedback' }
48 -- ========================================================================
49 -- OPTIONAL
50 -- Remove leading -- to use a option
51 -- ========================================================================
53 -- List of enabled languages, defaults to available languages
54 -- ------------------------------------------------------------------------
55 -- config.enabled_languages = { 'en', 'de', 'eo', 'el', 'hu' }
57 -- Default language, defaults to "en"
58 -- ------------------------------------------------------------------------
59 -- config.default_lang = "en"
61 -- after how long is a user considered inactive and the trustee will see warning,
62 -- notation is according to postgresql intervals, default: no warning at all
63 -- ------------------------------------------------------------------------
64 -- config.delegation_warning_time = '6 months'
66 -- Prefix of all automatic mails, defaults to "[Liquid Feedback] "
67 -- ------------------------------------------------------------------------
68 -- config.mail_subject_prefix = "[LiquidFeedback] "
70 -- Sender of all automatic mails, defaults to system defaults
71 -- ------------------------------------------------------------------------
72 -- config.mail_envelope_from = "liquid-support@example.com"
73 -- config.mail_from = "LiquidFeedback"
74 -- config.mail_reply_to = "liquid-support@example.com"
76 -- Supply custom url for avatar/photo delivery
77 -- ------------------------------------------------------------------------
78 -- config.fastpath_url_func = nil
80 -- Local directory for database dumps offered for download
81 -- ------------------------------------------------------------------------
82 -- config.download_dir = nil
84 -- Special use terms for database dump download
85 -- ------------------------------------------------------------------------
86 -- config.download_use_terms = "=== Download use terms ===\n"
88 -- Set public access level
89 -- Available options: false, "anonymous", "pseudonym", "full"
90 -- Defaults to "full"
91 -- ------------------------------------------------------------------------
92 -- config.public_access = "full"
94 -- Use custom image conversion, defaults to ImageMagick's convert
95 -- ------------------------------------------------------------------------
96 --config.member_image_content_type = "image/jpeg"
97 --config.member_image_convert_func = {
98 -- avatar = function(data) return extos.pfilter(data, "convert", "jpeg:-", "-thumbnail", "48x48", "jpeg:-") end,
99 -- photo = function(data) return extos.pfilter(data, "convert", "jpeg:-", "-thumbnail", "240x240", "jpeg:-") end
100 --}
102 -- Integration of Etherpad, disabled by default
103 -- ------------------------------------------------------------------------
104 --config.etherpad = {
105 -- base_url = "http://example.com:9001/",
106 -- api_base = "http://localhost:9001/",
107 -- api_key = "mysecretapikey",
108 -- group_id = "mygroupname",
109 -- cookie_path = "/"
110 --}
112 -- WebMCP accelerator
113 -- uncomment the following two lines to use C implementations of chosen
114 -- functions and to disable garbage collection during the request, to
115 -- increase speed:
116 -- ------------------------------------------------------------------------
117 -- require 'webmcp_accelerator'
118 -- if cgi then collectgarbage("stop") end
121 -- ========================================================================
122 -- Do main initialisation (DO NOT REMOVE FOLLOWING SECTION)
123 -- ========================================================================
125 execute.config("init")

Impressum / About Us