mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-25 15:49:59 +00:00
Add test without access by ipWhistelist
This test set a invalid IP address for not have access to MagicMirror. Creates a request to localhost and port added in configuration and check if gets 403 HTTP code.
This commit is contained in:
25
tests/configs/noIpWhiteList.js
Normal file
25
tests/configs/noIpWhiteList.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/* Magic Mirror Test config sample ipWhitelist
|
||||
*
|
||||
* By Rodrigo Ramírez Norambuena https://rodrigoramirez.com
|
||||
* MIT Licensed.
|
||||
*/
|
||||
|
||||
var config = {
|
||||
port: 8080,
|
||||
ipWhitelist: ["x.x.x.x"],
|
||||
|
||||
language: "en",
|
||||
timeFormat: 24,
|
||||
units: "metric",
|
||||
electronOptions: {
|
||||
webPreferences: {
|
||||
nodeIntegration: true,
|
||||
},
|
||||
},
|
||||
|
||||
modules: [
|
||||
]
|
||||
};
|
||||
|
||||
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
||||
if (typeof module !== "undefined") {module.exports = config;}
|
Reference in New Issue
Block a user