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