Fix homepage link behind AWS loadbalancer
This commit is contained in:
parent
65dbd81333
commit
3699e0d14a
@ -1,8 +1,9 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
module.exports = function () {
|
module.exports = function () {
|
||||||
let hkp = (this.secure ? 'hkps://' : 'hkp://') + this.host;
|
let tls = this.secure || process.env.NODE_ENV === 'production' && this.get('X-Forwarded-Proto') === 'https';
|
||||||
let del = this.origin + '/api/v1/removeKey?email=user@example.com';
|
let hkp = (tls ? 'hkps://' : 'hkp://') + this.host;
|
||||||
|
let del = (tls ? 'https://' : 'http://') + this.host + '/api/v1/removeKey?email=user@example.com';
|
||||||
this.body =
|
this.body =
|
||||||
`
|
`
|
||||||
<h1>Welcome to the OpenPGP key server</h1>
|
<h1>Welcome to the OpenPGP key server</h1>
|
||||||
|
Loading…
Reference in New Issue
Block a user