Spanish Total.js
English
Documentation For AI agents
Contents

Run in production

Make an OpenReports server safer before other people can reach it.

.md GitHub
On this page

OpenReports has no sign-in of its own: whoever can open its address can read every report, change the views and the database connection. Before you put it on a server, limit who can reach it.

Listen only on the server itself

By default OpenReports listens on every network address of the server. To accept only connections from the same machine, open index.js and remove the // at the start of this line:

// options.ip = '127.0.0.1';

Then put a web server in front of it (next section).

Use a reverse proxy with HTTPS

Run a web server such as Nginx or Caddy in front of OpenReports. Let it handle HTTPS and allow only the people who need the app, for example with a password or a list of addresses. Point it to http://127.0.0.1:8000.

For sign-in with user accounts, run OpenReports inside OpenPlatform.

Start in release mode

npm start runs OpenReports in debug mode, which watches the files for changes. On a server, start it in release mode:

node index.js 8000 --release

Protect your data

Made in Europe