diff --git a/config/default.js b/config/default.js index fb0c886..e6c733d 100644 --- a/config/default.js +++ b/config/default.js @@ -31,6 +31,10 @@ module.exports = { name: process.env.SENDER_NAME, email: process.env.SENDER_EMAIL } + }, + + ui: { + title: process.env.UI_TITLE || 'OpenPGP Public Key Server' } }; \ No newline at end of file diff --git a/src/route/hkp.js b/src/route/hkp.js index 29ffba1..78d11b0 100644 --- a/src/route/hkp.js +++ b/src/route/hkp.js @@ -46,6 +46,7 @@ class HKP { } let origin = util.origin(ctx); yield this._publicKey.put({ publicKeyArmored, origin }); + ctx.body = 'Upload successful. Check your inbox to verify your email address.'; ctx.status = 201; } diff --git a/src/route/home.js b/src/route/home.js index d8e56ec..abc45e9 100644 --- a/src/route/home.js +++ b/src/route/home.js @@ -1,32 +1,85 @@ 'use strict'; const util = require('../service/util'); +const config = require('config'); module.exports = function () { let hkpLink = util.hkpUrl(this); - let removeLink = util.url(util.origin(this), '/api/v1/removeKey?email=user@example.com'); this.body = `
-This server verifies email address as well as private key ownership by sending an encrypted verification email.
+ +Please refer to the documentation to learn more about the api.
+Please refer to the documentation to learn more about the REST api.
License AGPL v3.0
+