liquid_feedback_frontend

annotate config/default.lua @ 729:f52f918b38b8

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

Impressum / About Us