config.inc.php 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?
  2. class Z_CONFIG {
  3. public static $API_ENABLED = true;
  4. public static $SYNC_ENABLED = true;
  5. public static $PROCESSORS_ENABLED = true;
  6. public static $MAINTENANCE_MESSAGE = 'Server updates in progress. Please try again in a few minutes.';
  7. public static $TESTING_SITE = false;
  8. public static $DEV_SITE = false;
  9. public static $DEBUG_LOG = false;
  10. public static $BASE_URI = 'http://zotero.org/';
  11. public static $API_BASE_URI = 'https://localhost/';
  12. public static $WWW_BASE_URI = '';
  13. public static $SYNC_DOMAIN = 'sync';
  14. public static $AUTH_SALT = 'sometext';
  15. public static $API_SUPER_USERNAME = 'someusername';
  16. public static $API_SUPER_PASSWORD = 'somepassword';
  17. public static $AWS_ACCESS_KEY = '';
  18. public static $AWS_SECRET_KEY = 'yoursecretkey';
  19. public static $S3_BUCKET = 'zotero';
  20. public static $S3_ENDPOINT = 'localhost';
  21. public static $S3_USE_SSL = true;
  22. public static $S3_VALIDATE_SSL = false;
  23. public static $URI_PREFIX_DOMAIN_MAP = array(
  24. '/sync/' => 'sync'
  25. );
  26. public static $MEMCACHED_ENABLED = true;
  27. public static $MEMCACHED_SERVERS = array(
  28. 'localhost:11211'
  29. );
  30. public static $TRANSLATION_SERVERS = array(
  31. "translation1.localdomain:1969"
  32. );
  33. public static $CITATION_SERVERS = array(
  34. "citeserver1.localdomain:8080", "citeserver2.localdomain:8080"
  35. );
  36. public static $ATTACHMENT_SERVER_HOSTS = array("files1.localdomain", "files2.localdomain");
  37. public static $ATTACHMENT_SERVER_DYNAMIC_PORT = 80;
  38. public static $ATTACHMENT_SERVER_STATIC_PORT = 81;
  39. public static $ATTACHMENT_SERVER_URL = "https://files.example.net";
  40. public static $ATTACHMENT_SERVER_DOCROOT = "/var/www/attachments/";
  41. public static $STATSD_ENABLED = false;
  42. public static $STATSD_PREFIX = "";
  43. public static $STATSD_HOST = "monitor.localdomain";
  44. public static $STATSD_PORT = 8125;
  45. public static $LOG_TO_SCRIBE = false;
  46. public static $LOG_ADDRESS = '';
  47. public static $LOG_PORT = 1463;
  48. public static $LOG_TIMEZONE = 'US/Eastern';
  49. public static $LOG_TARGET_DEFAULT = 'errors';
  50. public static $PROCESSOR_PORT_DOWNLOAD = 3455;
  51. public static $PROCESSOR_PORT_UPLOAD = 3456;
  52. public static $PROCESSOR_PORT_ERROR = 3457;
  53. public static $PROCESSOR_LOG_TARGET_DOWNLOAD = 'sync-processor-download';
  54. public static $PROCESSOR_LOG_TARGET_UPLOAD = 'sync-processor-upload';
  55. public static $PROCESSOR_LOG_TARGET_ERROR = 'sync-processor-error';
  56. public static $SYNC_DOWNLOAD_SMALLEST_FIRST = false;
  57. public static $SYNC_UPLOAD_SMALLEST_FIRST = false;
  58. // Set some things manually for running via command line
  59. public static $CLI_PHP_PATH = '/usr/bin/php';
  60. public static $CLI_DOCUMENT_ROOT = "/srv/zotero/dataserver/";
  61. public static $SYNC_ERROR_PATH = '/srv/zotero/log/sync-errors/';
  62. public static $API_ERROR_PATH = '/srv/zotero/log/api-errors/';
  63. public static $CACHE_VERSION_ATOM_ENTRY = 1;
  64. public static $CACHE_VERSION_BIB = 1;
  65. public static $CACHE_VERSION_ITEM_DATA = 1;
  66. }
  67. ?>