X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=config%2Fdefault.js;h=3f54d9a24d4f524efd472e892c55c730f6f4bd41;hb=8f63eeebd08491cdc82e12f178dc500f6d19d65c;hp=3714253ee999c99e627f030503ec928d5392732d;hpb=afc5da271215282fa723e79a12562d3b86734326;p=websub-hub
diff --git a/config/default.js b/config/default.js
index 3714253..3f54d9a 100644
--- a/config/default.js
+++ b/config/default.js
@@ -2,8 +2,9 @@
// Provide default values for all configuration.
-const packageName = require('../package.json').name;
+const { name: packageName, version: packageVersion } = require('../package.json');
const common = require('../src/common');
+const Enum = require('../src/enum');
const defaultOptions = {
// Uniquely identify this instance, used to tag work-in-progress.
@@ -47,10 +48,12 @@ const defaultOptions = {
manager: {
pageTitle: packageName, // title on html pages
+ 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.
@@ -62,17 +65,19 @@ const defaultOptions = {
claimTimeoutSeconds: 600, // how long until an in-progress task is deemed abandoned
},
- // Outgoing request UA header. Comments are defaults in code.
+ // Outgoing request UA header.
+ // These values are the same as the defaults in the code, but we are setting
+ // them here so they also apply to UA of other modules, e.g. @squeep/indieauth-helper
userAgent: {
- // product: packageName,
- // version: packageVersion,
- // implementation: Enum.Specification,
+ product: packageName,
+ version: packageVersion,
+ implementation: Enum.Specification,
},
authenticator: {
basicRealm: packageName, // Realm prompt for login on administration pages
secureAuthOnly: true, // Require secure transport for authentication.
- authnEnabled: ['argon2', 'pam'],
+ authnEnabled: ['indieAuth', 'argon2', 'pam'],
forbiddenPAMIdentifiers: ['root'],
},
@@ -84,4 +89,4 @@ const defaultOptions = {
};
-module.exports = defaultOptions;
\ No newline at end of file
+module.exports = defaultOptions;