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