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.
54 lines
1.3 KiB
54 lines
1.3 KiB
6 years ago
|
var config = {
|
||
|
LISTEN_PORT: 8000,
|
||
|
LISTEN_HOST: null,
|
||
|
DEBUG: true,
|
||
|
SECURE_SALT: "LALALALALALALALA", /* [A-Za-z0-9./]{16} */
|
||
|
SOCKET_PATH: '/hana',
|
||
|
SERVE_STATIC_FILES: true,
|
||
|
SERVE_IMAGES: true,
|
||
|
GZIP: false, /* not preferred; use nginx (or other)'s gzipping */
|
||
|
USE_WEBSOCKETS: true,
|
||
|
|
||
|
REDIS_PORT: 6379,
|
||
|
READ_ONLY: false,
|
||
|
|
||
|
TRUST_X_FORWARDED_FOR: false,
|
||
|
CLOUDFLARE: false,
|
||
|
RESTRICTED_COUNTRIES: ['T1'], /* cloudflare only; T1 = Tor */
|
||
|
|
||
|
BOARDS: ['moe', 'gar', 'tea', 'meta', 'archive', 'staff'],
|
||
|
DEFAULT_BOARD: 'moe',
|
||
|
GAME_BOARDS: ['moe', 'archive'],
|
||
|
STAFF_BOARD: 'staff',
|
||
|
THREADS_PER_PAGE: 10,
|
||
|
ABBREVIATED_REPLIES: 5,
|
||
|
THREAD_LAST_N: 100,
|
||
|
|
||
|
CURFEW_BOARDS: ['tea'],
|
||
|
CURFEW_HOURS: [22, 23],
|
||
|
|
||
|
THREAD_THROTTLE: 60,
|
||
|
THREAD_EXPIRY: 3600 * 24 * 7,
|
||
|
SHORT_TERM_LIMIT: 2000,
|
||
|
LONG_TERM_LIMIT: 2000*20*12,
|
||
|
NEW_POST_WORTH: 50,
|
||
|
IMAGE_WORTH: 50,
|
||
|
SUBJECT_MAX_LENGTH: 50,
|
||
|
EXCLUDE_REGEXP: /[\u2000-\u200f\u202a-\u202f\u205f-\u206f]+/g,
|
||
|
SAGE_ENABLED: true,
|
||
|
|
||
|
ADMIN_GITHUBS: ['lalcmellkmal'],
|
||
|
MODERATOR_GITHUBS: [],
|
||
|
GITHUB_CLIENT_ID: '',
|
||
|
GITHUB_CLIENT_SECRET: '',
|
||
|
LOGIN_COOKIE_DOMAIN: 'example.com',
|
||
|
LOGIN_SESSION_TIME: 60*60*24*14,
|
||
|
IP_MNEMONIC: true,
|
||
|
|
||
|
// API key with Youtube Data API v3 (browser) access
|
||
|
// obtain from https://console.developers.google.com
|
||
|
GOOGLE_API_KEY: '',
|
||
|
};
|
||
|
|
||
|
module.exports = config;
|