mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2024-11-25 17:07:30 +00:00
Add comments to configuration
This commit is contained in:
parent
ac0b16e683
commit
295fac6268
@ -1,6 +1,9 @@
|
|||||||
const mixin = require("mixin-deep")
|
const mixin = require("mixin-deep")
|
||||||
|
|
||||||
|
// Configuration is in the following block.
|
||||||
|
|
||||||
let constants = {
|
let constants = {
|
||||||
|
// The default user settings. Should be self-explanatory.
|
||||||
user_settings: {
|
user_settings: {
|
||||||
instance: {
|
instance: {
|
||||||
type: "string",
|
type: "string",
|
||||||
@ -16,21 +19,30 @@ let constants = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Settings for the server to use internally.
|
||||||
server_setup: {
|
server_setup: {
|
||||||
|
// The URL of the local NewLeaf instance, which is always used for subscription updates.
|
||||||
local_instance_origin: "http://localhost:3000"
|
local_instance_origin: "http://localhost:3000"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// *** ***
|
||||||
|
// *** You shouldn't change anything below this point. ***
|
||||||
|
// *** ***
|
||||||
|
|
||||||
|
// Various caching timers.
|
||||||
caching: {
|
caching: {
|
||||||
csrf_time: 4*60*60*1000,
|
csrf_time: 4*60*60*1000,
|
||||||
seen_token_subscriptions_eligible: 40*60*60*1000,
|
seen_token_subscriptions_eligible: 40*60*60*1000,
|
||||||
subscriptions_refresh_loop_min: 5*60*1000,
|
subscriptions_refresh_loop_min: 5*60*1000,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Pattern matching.
|
||||||
regex: {
|
regex: {
|
||||||
ucid: "[A-Za-z0-9-_]+",
|
ucid: "[A-Za-z0-9-_]+",
|
||||||
video_id: "[A-Za-z0-9-_]{11,}"
|
video_id: "[A-Za-z0-9-_]{11,}"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// State symbols.
|
||||||
symbols: {
|
symbols: {
|
||||||
refresher: {
|
refresher: {
|
||||||
ACTIVE: Symbol("ACTIVE"),
|
ACTIVE: Symbol("ACTIVE"),
|
||||||
|
Loading…
Reference in New Issue
Block a user