From 295fac6268def662345aba2212e444eb4af8097f Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Sat, 27 Feb 2021 15:48:35 +1300 Subject: [PATCH] Add comments to configuration --- utils/constants.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/utils/constants.js b/utils/constants.js index da3d161..9f51604 100644 --- a/utils/constants.js +++ b/utils/constants.js @@ -1,6 +1,9 @@ const mixin = require("mixin-deep") +// Configuration is in the following block. + let constants = { + // The default user settings. Should be self-explanatory. user_settings: { instance: { type: "string", @@ -16,21 +19,30 @@ let constants = { } }, + // Settings for the server to use internally. server_setup: { + // The URL of the local NewLeaf instance, which is always used for subscription updates. local_instance_origin: "http://localhost:3000" }, + // *** *** + // *** You shouldn't change anything below this point. *** + // *** *** + + // Various caching timers. caching: { csrf_time: 4*60*60*1000, seen_token_subscriptions_eligible: 40*60*60*1000, subscriptions_refresh_loop_min: 5*60*1000, }, + // Pattern matching. regex: { ucid: "[A-Za-z0-9-_]+", video_id: "[A-Za-z0-9-_]{11,}" }, + // State symbols. symbols: { refresher: { ACTIVE: Symbol("ACTIVE"),