removed ip whitelist option

This commit is contained in:
jash
2018-11-03 12:50:44 +01:00
committed by kexkey
parent f4d6036a17
commit 175d008f10
2 changed files with 1 additions and 28 deletions

View File

@@ -51,23 +51,6 @@ module.exports = {
default: false,
message: prefix()+'Recreate gatekeeper ssl cert?'+utils._getHelp('gatekeeper_recreatecert')
},
{
type: 'confirm',
name: 'gatekeeper_edit_ipwhitelist',
default: false,
message: prefix()+'Edit IP whitelist?'+utils._getHelp('gatekeeper_edit_ipwhitelist')
},
{
when: function( props ) {
const r = props.gatekeeper_edit_ipwhitelist;
delete props.gatekeeper_edit_ipwhitelist;
return r;
},
type: 'editor',
name: 'gatekeeper_ipwhitelist',
message: utils._getHelp('gatekeeper_ipwhitelist')||' ',
default: utils._getDefault( 'gatekeeper_ipwhitelist' )
},
{
type: 'confirm',
name: 'gatekeeper_edit_apiproperties',
@@ -87,6 +70,6 @@ module.exports = {
}];
},
templates: function( props ) {
return [ 'keys.properties', 'api.properties', 'ip-whitelist.conf', 'cert.pem', 'key.pem' ];
return [ 'keys.properties', 'api.properties', 'cert.pem', 'key.pem' ];
}
};

View File

@@ -1,10 +0,0 @@
# Leave commented if you don't want to use IP whitelist
#real_ip_header X-Forwarded-For;
#set_real_ip_from 0.0.0.0/0;
# List of white listed IP addresses...
#allow 45.56.67.78;
#deny all;
<%- gatekeeper_ipwhitelist %>