X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=config%2Fdefault.js;h=58ba307926fea8dd9cb0bbbb827b8ca152e90845;hb=e23bda592175ae5ed772f366069ccfd2f60e1f70;hp=b23d0f8833919fdd29af7480abd552f9f3b74b30;hpb=475643b5b76ddfe81ad9eafe052b9b8ba9029fba;p=websub-hub diff --git a/config/default.js b/config/default.js index b23d0f8..58ba307 100644 --- a/config/default.js +++ b/config/default.js @@ -5,6 +5,10 @@ const { name: packageName, version: packageVersion } = require('../package.json'); const common = require('../src/common'); const Enum = require('../src/enum'); +const roman = require('@squeep/roman'); + +const currentYear = (new Date()).getFullYear(); +const romanYearHTML = roman.toRoman(currentYear, true); const defaultOptions = { // Uniquely identify this instance, used to tag work-in-progress. @@ -48,17 +52,19 @@ const defaultOptions = { manager: { pageTitle: packageName, // title on html pages - logoUrl: '/static/logo.svg', // image to go with title + logoUrl: 'static/logo.svg', // image to go with title footerEntries: [ // common footers on all html pages 'Development Repository / GitHub mirror', - '©', + `©`, ], + publishHistoryDays: 60, // Number of days of update history to show on topic details page strictSecrets: false, // If true, reject requests with secrets but not over https publicHub: true, // Accept publish requests as new topics. processImmediately: true, // If true, immediately attempt to process requests when accepted. }, communication: { + requestTimeoutMs: 120000, strictTopicHubLink: true, // If true, deletes topics which do not list us (dingus.selfBaseUrl) as a hub relation. retryBackoffSeconds: [60, 120, 360, 1440, 7200, 43200, 86400], // failed requests retry according to number of attempts claimTimeoutSeconds: 600, // how long until an in-progress task is deemed abandoned