Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

94 lines
3.0 KiB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
  1. <?php
  2. // If automatic system installation fails:
  3. // Copy or rename this file to .htconfig.php
  4. // Why .htconfig.php? Because it contains sensitive information which could
  5. // give somebody complete control of your database. Apache's default
  6. // configuration denies access to and refuses to serve any file beginning
  7. // with .ht
  8. // Then set the following for your MySQL installation
  9. $db_host = 'your.mysqlhost.com';
  10. $db_user = 'mysqlusername';
  11. $db_pass = 'mysqlpassword';
  12. $db_data = 'mysqldatabasename';
  13. // Set the database connection charset to UTF8.
  14. // Changing this value will likely corrupt the special characters.
  15. // You have been warned.
  16. $a->config['system']['db_charset'] = "utf8mb4";
  17. // Choose a legal default timezone. If you are unsure, use "America/Los_Angeles".
  18. // It can be changed later and only applies to timestamps for anonymous viewers.
  19. $default_timezone = 'America/Los_Angeles';
  20. // Default system language
  21. $a->config['system']['language'] = 'en';
  22. // What is your site name?
  23. $a->config['sitename'] = "Friendica Social Network";
  24. // Your choices are REGISTER_OPEN, REGISTER_APPROVE, or REGISTER_CLOSED.
  25. // Be certain to create your own personal account before setting
  26. // REGISTER_CLOSED. 'register_text' (if set) will be displayed prominently on
  27. // the registration page. REGISTER_APPROVE requires you set 'admin_email'
  28. // to the email address of an already registered person who can authorise
  29. // and/or approve/deny the request.
  30. // In order to perform system administration via the admin panel, admin_email
  31. // must precisely match the email address of the person logged in.
  32. $a->config['register_policy'] = REGISTER_OPEN;
  33. $a->config['register_text'] = '';
  34. $a->config['admin_email'] = '';
  35. // Maximum size of an imported message, 0 is unlimited
  36. $a->config['max_import_size'] = 200000;
  37. // maximum size of uploaded photos
  38. $a->config['system']['maximagesize'] = 800000;
  39. // Location of PHP command line processor
  40. $a->config['php_path'] = 'php';
  41. // PuSH - aka pubsubhubbub URL. This makes delivery of public posts as fast as private posts
  42. $a->config['system']['huburl'] = '[internal]';
  43. // Server-to-server private message encryption (RINO) is allowed by default.
  44. // Encryption will only be provided if this setting is set to a non zero
  45. // value and the PHP mcrypt extension is installed on both systems
  46. // set to 0 to disable, 2 to enable, 1 is deprecated but wont need mcrypt
  47. $a->config['system']['rino_encrypt'] = 2;
  48. // allowed themes (change this from admin panel after installation)
  49. $a->config['system']['allowed_themes'] = 'quattro,vier,duepuntozero,smoothly';
  50. // default system theme
  51. $a->config['system']['theme'] = 'vier';
  52. // By default allow pseudonyms
  53. $a->config['system']['no_regfullname'] = true;
  54. //Deny public access to the local directory
  55. //$a->config['system']['block_local_dir'] = false;
  56. // Location of the global directory
  57. $a->config['system']['directory'] = 'http://dir.friendi.ca';
  58. // Allowed protocols in link URLs; HTTP protocols always are accepted
  59. $a->config['system']['allowed_link_protocols'] = array('ftp', 'ftps', 'mailto', 'cid', 'gopher');