Code Monkey home page Code Monkey logo

Comments (3)

lorenwest avatar lorenwest commented on July 21, 2024

Does your test work with a local server? If so, this is a configuration issue, and you're right - it could use some better documentation and configuration examples. One way to change configurations is to start your app server with the following on the command line:

node myapp.js '--NODE_CONFIG={"Monitor":{"allowExternalConnections":true}}'

That should allow your app to be monitored remotely. Make sure you understand the security concerns.

From http://lorenwest.github.io/node-monitor/index.html

Security Concerns

Exposing the internals of your app server is a high security risk. By default, the server listens on port 42000 and will connect with localhost clients only.

In order to monitor across machines, the default configuration must be changed to listen beyond localhost. Before doing this, it is recommended to understand the risks and have external measures in place to prevent unauthorized access.

See notes in the config/external.js file for more information.

from node-monitor.

lorenwest avatar lorenwest commented on July 21, 2024

To add some context, node-monitor uses node-config for configuration management. This allows multiple npm modules to mixin configurations, offers multi-deployment configurations, and file based, environment variable based, or command line based configurations.

The above example used the command line based configuration, but as you deploy your app to different environments (development, qa, staging, production), you may need different configurations. The best way is to create a /config directory at the top of your app, put default configurations into the default file, and environment-specific configurations into their own file. Hopefully the node-config documentation will be enough to get you going.

from node-monitor.

adrixpho avatar adrixpho commented on July 21, 2024

It works!, I forget create that /config folder with my configuration. Thanks so much.. And congrat for this library (^_^)

from node-monitor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.