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