config.php 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?php
  2. defined('GNUSOCIAL') || exit(1);
  3. $config['site']['name'] = 'gnusocial';
  4. $config['site']['server'] = 'localhost';
  5. $config['site']['path'] = 'gnusocial';
  6. $config['site']['fancy'] = false;
  7. $config['site']['ssl'] = 'never';
  8. $config['site']['sslproxy'] = false;
  9. $config['site']['profile'] = 'public';
  10. $config['site']['logdebug'] = false;
  11. $config['site']['theme'] = 'neo-blue';
  12. $config['site']['email'] = 'foo@example.com';
  13. $config['site']['broughtby'] = null;
  14. $config['site']['broughtbyurl'] = null;
  15. $config['site']['notice'] = null;
  16. // $config['site']['textlimit'] = 1000;
  17. $config['db']['database'] = 'mysqli://foo:password@localhost/gnusocial';
  18. $config['db']['type'] = 'mysql';
  19. $config['db']['foreign_keys'] = true;
  20. // Uncomment below for better performance. Just remember you must run
  21. // php scripts/checkschema.php whenever your enabled plugins change!
  22. $config['db']['schemacheck'] = 'script';
  23. $config['syslog']['appname'] = 'gnu-social';
  24. $config['queue']['enabled'] = true;
  25. $config['queue']['daemon'] = true;
  26. $config['queue']['subsystem'] = 'db';
  27. $config['queue']['inboxes'] = true;
  28. $config['license']['type'] = 'cc';
  29. $config['license']['url'] = 'https://creativecommons.org/licenses/by/4.0/';
  30. $config['license']['title'] = 'Creative Commons Attribution 4.0';
  31. $config['license']['image'] = '/gnusocial/theme/licenses/cc_by_4.0_80x15.png';
  32. $config['mail']['backend'] = 'smtp';
  33. $config['mail']['params'] = [
  34. 'host' => 'example.org',
  35. 'port' => 465,
  36. 'auth' => true,
  37. 'username' => 'foo',
  38. 'password' => 'password',
  39. 'timeout' => 60,
  40. 'verp' => false,
  41. 'debug' => false,
  42. 'persist' => true,
  43. 'pipelining' => true
  44. ];
  45. $config['nickname']['featured'] = ['admin'];
  46. $config['avatar']['url_base'] = '/gnusocial/index.php/avatar';
  47. // $config['avatar']['maxsize'] = 300;
  48. $config['daemon']['piddir'] = __DIR__ . '/run/';
  49. $config['daemon']['user'] = 'nobody';
  50. $config['daemon']['group'] = 'nogroup';
  51. $config['throttle']['enabled'] = true;
  52. // $config['throttle']['count'] = 20;
  53. // $config['throttle']['timespan'] = 600;
  54. $config['profile']['changenick'] = false;
  55. $config['profile']['allowprivate'] = true;
  56. $config['profile']['backup'] = true;
  57. $config['profile']['restore'] = true;
  58. $config['profile']['delete'] = true;
  59. $config['profile']['move'] = true;
  60. $config['newuser']['default'] = 'admin';
  61. $config['newuser']['welcome'] = 'admin';
  62. $config['attachments']['url_base'] = '/gnusocial/index.php/file/';
  63. $config['attachments']['dir'] = __DIR__ . '/file/uploads/';
  64. // $config['attachments']['file_quota'] = '2M';
  65. // $config['attachments']['user_quota'] = 50000000;
  66. // $config['attachments']['monthly_quota'] = 15000000;
  67. // $config['attachments']['memory_limit'] = '1024M';
  68. $config['thumbnail']['url_base'] = '/gnusocial/index.php/thumb/';
  69. $config['thumbnail']['dir'] = __DIR__ . '/file/thumb/';
  70. $config['thumbnail']['animated'] = true;
  71. session_save_path(__DIR__ . '/file/sessions/');
  72. $config['sessions']['debug'] = false;
  73. $config['notice']['allowprivate'] = true;
  74. $config['nofollow']['external'] = 'always';