projects
/
websub-hub
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix minor issue with postgres listener dealing with connection errors and shutdown
[websub-hub]
/
config
/
default.js
diff --git
a/config/default.js
b/config/default.js
index 3714253ee999c99e627f030503ec928d5392732d..b23d0f8833919fdd29af7480abd552f9f3b74b30 100644
(file)
--- a/
config/default.js
+++ b/
config/default.js
@@
-2,8
+2,9
@@
// Provide default values for all configuration.
// 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 common = require('../src/common');
+const Enum = require('../src/enum');
const defaultOptions = {
// Uniquely identify this instance, used to tag work-in-progress.
const defaultOptions = {
// Uniquely identify this instance, used to tag work-in-progress.
@@
-47,9
+48,10
@@
const defaultOptions = {
manager: {
pageTitle: packageName, // title on html pages
manager: {
pageTitle: packageName, // title on html pages
+ logoUrl: '/static/logo.svg', // image to go with title
footerEntries: [ // common footers on all html pages
'<a href="https://git.squeep.com/?p=websub-hub;a=tree">Development Repository</a> / <a href="https://github.com/thylacine/websub-hub/">GitHub mirror</a>',
footerEntries: [ // common footers on all html pages
'<a href="https://git.squeep.com/?p=websub-hub;a=tree">Development Repository</a> / <a href="https://github.com/thylacine/websub-hub/">GitHub mirror</a>',
- '<s
mall><span class="copyright">©<time datetime="2021">ⅯⅯⅩⅩⅠ</time></span></small
>',
+ '<s
pan class="copyright">©<time datetime="2022">ⅯⅯⅩⅩⅠⅠ</time></span
>',
],
strictSecrets: false, // If true, reject requests with secrets but not over https
publicHub: true, // Accept publish requests as new topics.
],
strictSecrets: false, // If true, reject requests with secrets but not over https
publicHub: true, // Accept publish requests as new topics.
@@
-62,17
+64,19
@@
const defaultOptions = {
claimTimeoutSeconds: 600, // how long until an in-progress task is deemed abandoned
},
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: {
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.
},
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'],
},
forbiddenPAMIdentifiers: ['root'],
},
@@
-84,4
+88,4
@@
const defaultOptions = {
};
};
-module.exports = defaultOptions;
\ No newline at end of file
+module.exports = defaultOptions;