liquid_feedback_frontend

view config/default.lua @ 732:3a61d21618f6

Made database configurable
author bsw
date Thu Jun 28 17:23:38 2012 +0200 (2012-06-28)
parents 0015fa6eb637
children
line source
1 -- ========================================================================
2 -- MANDATORY CONFIG OPTIONS (MUST BE SET!)
3 -- ========================================================================
5 -- Name of this instance, defaults to name of config file
6 -- ------------------------------------------------------------------------
7 config.instance_name = "Instance name"
9 -- Information about service provider (HTML)
10 -- ------------------------------------------------------------------------
11 config.app_service_provider = "Snake Oil<br/>10000 Berlin<br/>Germany"
13 -- A rocketwiki formatted text the user has to accept while registering
14 -- ------------------------------------------------------------------------
15 config.use_terms = "=== Terms of Use ==="
17 -- Checkbox(es) the user has to accept while registering
18 -- ------------------------------------------------------------------------
19 config.use_terms_checkboxes = {
20 {
21 name = "terms_of_use_v1",
22 html = "I accept the terms of use.",
23 not_accepted_error = "You have to accept the terms of use to be able to register."
24 }
25 }
27 -- ========================================================================
28 -- Optional config options
29 -- Remove leading -- to enable a option
30 -- ========================================================================
32 -- Connection information for the LiquidFeedback database
33 -- ------------------------------------------------------------------------
34 -- config.database = { engine='postgresql', dbname='liquid_feedback' }
36 -- Absolute base url of application
37 -- ------------------------------------------------------------------------
38 -- config.absolute_base_url = "http://example.com/"
40 -- List of enabled languages, defaults to available languages
41 -- ------------------------------------------------------------------------
42 -- config.enabled_languages = { 'en', 'de', 'eo', 'el', 'hu' }
44 -- Default language, defaults to "en"
45 -- ------------------------------------------------------------------------
46 -- config.default_lang = "en"
48 -- after how long is a user considered inactive and the trustee will see warning
49 -- notation is according to postgresql intervals
50 -- ------------------------------------------------------------------------
51 -- config.delegation_warning_time = '6 months'
53 -- Sender and prefix of all automatic mails, default to "[Liquid Feedback] "
54 -- ------------------------------------------------------------------------
55 -- config.mail_subject_prefix = "[LiquidFeedback] "
56 -- config.mail_envelope_from = "liquid-support@example.com"
57 -- config.mail_from = "LiquidFeedback"
58 -- config.mail_reply_to = "liquid-support@example.com"
60 -- Supply custom url for avatar/photo delivery
61 -- ------------------------------------------------------------------------
62 -- config.fastpath_url_func = nil
64 -- Local directory for database dumps offered for download
65 -- ------------------------------------------------------------------------
66 -- config.download_dir = nil
68 -- Special use terms for database dump download
69 -- ------------------------------------------------------------------------
70 -- config.download_use_terms = "=== Download use terms ===\n"
72 -- Set public access level
73 -- Available options: false, "anonymous", "pseudonym", "full"
74 -- ------------------------------------------------------------------------
75 -- config.public_access = "full"
77 -- Use custom image conversion
78 -- ------------------------------------------------------------------------
79 --config.member_image_content_type = "image/jpeg"
80 --config.member_image_convert_func = {
81 -- avatar = function(data) return extos.pfilter(data, "convert", "jpeg:-", "-thumbnail", "48x48", "jpeg:-") end,
82 -- photo = function(data) return extos.pfilter(data, "convert", "jpeg:-", "-thumbnail", "240x240", "jpeg:-") end
83 --}
85 -- Integration of Etherpad
86 -- ------------------------------------------------------------------------
87 --config.etherpad = {
88 -- base_url = "http://example.com:9001/",
89 -- api_base = "http://localhost:9001/",
90 -- api_key = "mysecretapikey",
91 -- group_id = "mygroupname",
92 -- cookie_path = "/"
93 --}
95 -- WebMCP accelerator
96 -- uncomment the following two lines to use C implementations of chosen
97 -- functions and to disable garbage collection during the request, to
98 -- increase speed:
99 -- ------------------------------------------------------------------------
100 -- require 'webmcp_accelerator'
101 -- collectgarbage("stop")
104 -- ========================================================================
105 -- Do main initialisation (DO NOT REMOVE THIS SECTION)
106 -- ========================================================================
108 execute.config("init")

Impressum / About Us