133 lines
3.1 KiB
JavaScript
133 lines
3.1 KiB
JavaScript
module.exports = {
|
|
/*
|
|
Copy this file to `config.js`, and add options here.
|
|
They'll override the options from `utils/constants.js`.
|
|
*/
|
|
|
|
// extra_inv_instances: [],
|
|
|
|
// Default user settings
|
|
user_settings: {
|
|
// Uncomment this and set the value to the url of your newleaf instance.
|
|
// Must be running my fork (https://git.eir-nya.gay/eir/newleaf)
|
|
// instance: {
|
|
// type: "string",
|
|
// default: "..."
|
|
// },
|
|
theme: {
|
|
type: "integer",
|
|
default: 3
|
|
},
|
|
// save_history: {
|
|
// type: "boolean",
|
|
// default: false
|
|
// },
|
|
// local: {
|
|
// type: "integer",
|
|
// default: 0
|
|
// },
|
|
// autoHD: {
|
|
// type: "boolean",
|
|
// default: 1
|
|
// },
|
|
// quality: {
|
|
// type: "integer",
|
|
// default: 0
|
|
// },
|
|
// recommended_mode: {
|
|
// type: "integer",
|
|
// default: 0
|
|
// },
|
|
// dearrow: {
|
|
// type: "integer",
|
|
// default: 1
|
|
// },
|
|
// dearrow_thumbnail_instance: {
|
|
// type: "string",
|
|
// default: "https://dearrow-thumb.ajay.app"
|
|
// },
|
|
// dearrow_preload: {
|
|
// type: "boolean",
|
|
// default: 0
|
|
// },
|
|
// sponsorblock: {
|
|
// type: "boolean",
|
|
// default: 1
|
|
// },
|
|
// sponsorblock_keybind: {
|
|
// type: "string",
|
|
// default: "b"
|
|
// },
|
|
// sponsorblock_sponsor: {
|
|
// type: "integer",
|
|
// default: 0
|
|
// },
|
|
// sponsorblock_selfpromo: {
|
|
// type: "integer",
|
|
// default: 0
|
|
// },
|
|
// sponsorblock_interaction: {
|
|
// type: "integer",
|
|
// default: 0
|
|
// },
|
|
// sponsorblock_intro: {
|
|
// type: "integer",
|
|
// default: 2
|
|
// },
|
|
// sponsorblock_outro: {
|
|
// type: "integer",
|
|
// default: 2
|
|
// },
|
|
// sponsorblock_preview: {
|
|
// type: "integer",
|
|
// default: 2
|
|
// },
|
|
// sponsorblock_music_offtopic: {
|
|
// type: "integer",
|
|
// default: 0
|
|
// },
|
|
// sponsorblock_filler: {
|
|
// type: "integer",
|
|
// default: 2
|
|
// }
|
|
},
|
|
|
|
// Default server settings
|
|
server_setup: {
|
|
// The URL of the local NewLeaf instance, which is always used for subscription updates.
|
|
// local_instance_origin: "http://localhost:3000",
|
|
// Whether users may filter videos by regular expressions. Unlike square patterns, regular expressions are _not_ bounded in complexity, so this can be used for denial of service attacks. Only enable if this is a private instance and you trust all the members.
|
|
// allow_regexp_filters: false,
|
|
|
|
// Download cache related vars.
|
|
// - Eir
|
|
// video_cache_max_size: (1024*1024*1024) * 10,
|
|
// cache_json_max_size: (1024*1024) * 128,
|
|
// time_between_cache_save_to_disk: (1000 * 60) * 12,
|
|
// time_between_cache_cleanup: (1000*60) * 45,
|
|
// time_before_ogg_delete: (1000*60) * 5,
|
|
// download_queue_threads: 3,
|
|
// video_dl_path: "cache/assets",
|
|
// ogg_dl_path: "cache/assets/temp",
|
|
// json_cache_path: "cache/json",
|
|
// ytdlp_cache_path: "cache/ytdlp",
|
|
// video_hq_preload_max_time: 60 * 255,
|
|
// ratelimiting: {
|
|
// enabled: true,
|
|
// max_bucket_size: 10,
|
|
// bucket_refill_rate_seconds: 60
|
|
// }
|
|
},
|
|
|
|
// Various caching timers.
|
|
// caching: {
|
|
// subscriptions_refresh_loop_min: 5 * (60*1000)
|
|
// },
|
|
|
|
// Allow video takedowns
|
|
// takedown: {
|
|
// contact_url: "...",
|
|
// contact_email: "..."
|
|
// }
|
|
}
|