Configuration files
The keys of the config files of Admin and Stream, and the start options in index.js.
Diese Seite ist noch nicht übersetzt. Du liest das Original.
Auf dieser Seite
Each app has a config file in its folder. Every line is a key, a colon and a value. Change a value and restart the app.
Admin
| Key | What it does | Example |
|---|---|---|
name | The name of the app until you set App name in Settings. | IoT Platform |
database | The connection to the PostgreSQL database. | postgresql://user:password@127.0.0.1:5432/iot |
url | The public address of Admin. | https://iot.example.com |
Keep the other keys of the shipped file as they are.
Stream
| Key | What it does | Example |
|---|---|---|
name | The name of the stream. | IoT Stream |
database | The connection to the same PostgreSQL database as Admin. | postgresql://user:password@127.0.0.1:5432/iot |
url | The public address of the stream, where devices send their data. | https://stream.example.com |
Start options in index.js
Both apps start from index.js. The lines that begin with // are switched off. Remove the // to use one:
options.ip = '127.0.0.1';
options.port = 8001;options.iplimits the app to one network address, for example127.0.0.1when a web server on the same machine forwards the requests.options.portsets the port. Admin uses8000when you start it withnpm start.
Start an app with --release for production:
node index.js --release