Real-time imageboard in node.js and redis http://doushio.com/moe/
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.
 
 
 
 
 
 

53 lines
1.3 KiB

  1. var config = {
  2. LISTEN_PORT: 8000,
  3. LISTEN_HOST: null,
  4. DEBUG: true,
  5. SECURE_SALT: "LALALALALALALALA", /* [A-Za-z0-9./]{16} */
  6. SOCKET_PATH: '/hana',
  7. SERVE_STATIC_FILES: true,
  8. SERVE_IMAGES: true,
  9. GZIP: false, /* not preferred; use nginx (or other)'s gzipping */
  10. REDIS_PORT: 6379,
  11. READ_ONLY: false,
  12. TRUST_X_FORWARDED_FOR: false,
  13. CLOUDFLARE: false,
  14. RESTRICTED_COUNTRIES: ['T1'], /* cloudflare only; T1 = Tor */
  15. BOARDS: ['moe', 'gar', 'tea', 'meta', 'archive', 'staff'],
  16. DEFAULT_BOARD: 'moe',
  17. GAME_BOARDS: ['moe', 'archive'],
  18. STAFF_BOARD: 'staff',
  19. THREADS_PER_PAGE: 10,
  20. ABBREVIATED_REPLIES: 5,
  21. THREAD_LAST_N: 100,
  22. CURFEW_BOARDS: ['tea'],
  23. CURFEW_HOURS: [22, 23],
  24. THREAD_THROTTLE: 60,
  25. THREAD_EXPIRY: 3600 * 24 * 7,
  26. SHORT_TERM_LIMIT: 2000,
  27. LONG_TERM_LIMIT: 2000*20*12,
  28. NEW_POST_WORTH: 50,
  29. IMAGE_WORTH: 50,
  30. SUBJECT_MAX_LENGTH: 50,
  31. EXCLUDE_REGEXP: /[\u2000-\u200f\u202a-\u202f\u205f-\u206f]+/g,
  32. SAGE_ENABLED: true,
  33. ADMIN_GITHUBS: ['lalcmellkmal'],
  34. MODERATOR_GITHUBS: [],
  35. GITHUB_CLIENT_ID: '',
  36. GITHUB_CLIENT_SECRET: '',
  37. LOGIN_COOKIE_DOMAIN: 'example.com',
  38. LOGIN_SESSION_TIME: 60*60*24*14,
  39. IP_MNEMONIC: true,
  40. // API key with Youtube Data API v3 (browser) access
  41. // obtain from https://console.developers.google.com
  42. GOOGLE_API_KEY: '',
  43. };
  44. module.exports = config;