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