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.
 
 
 
 
 
 

92 lines
2.8 KiB

  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 full Unicode (utf8mb4).
  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. // Server-to-server private message encryption (RINO) is allowed by default.
  42. // set to 0 to disable, 1 to enable
  43. $a->config['system']['rino_encrypt'] = 1;
  44. // allowed themes (change this from admin panel after installation)
  45. $a->config['system']['allowed_themes'] = 'quattro,vier,duepuntozero,smoothly';
  46. // default system theme
  47. $a->config['system']['theme'] = 'vier';
  48. // By default allow pseudonyms
  49. $a->config['system']['no_regfullname'] = true;
  50. //Deny public access to the local directory
  51. //$a->config['system']['block_local_dir'] = false;
  52. // Location of the global directory
  53. $a->config['system']['directory'] = 'https://dir.friendica.social';
  54. // Allowed protocols in link URLs; HTTP protocols always are accepted
  55. $a->config['system']['allowed_link_protocols'] = ['ftp', 'ftps', 'mailto', 'cid', 'gopher'];
  56. // Authentication cookie lifetime, in days
  57. $a->config['system']['auth_cookie_lifetime'] = 7;