---
title: Run in production
project: OpenReports
version: 1.0
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/openreports/1-0/guides/production/
updated: 2026-11-19T07:46:46.348Z
---

# Run in production

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

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:

```js
// 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](../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:

```bash
node index.js 8000 --release
```

## Protect your data

- Connect with a PostgreSQL user that can only read. See [Connect the database](../connect-database/).
- If you [enable the API](../enable-api/), use a generated token and keep it secret.
- [Back up OpenReports](../backups/) regularly.
