mirror of
https://github.com/aljazceru/cyphernode.git
synced 2026-01-07 23:16:12 +01:00
removed ip whitelist option
This commit is contained in:
@@ -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' ];
|
||||
}
|
||||
};
|
||||
@@ -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 %>
|
||||
Reference in New Issue
Block a user