---
title: Run in production
project: OpenLogger
version: 1.0
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/openlogger/1-0/guides/production/
updated: 2026-11-19T08:02:31.630Z
---

# Run in production

> Start OpenLogger in release mode and protect the server.

`npm start` runs OpenLogger in debug mode, which is meant for development. On a server, start it in release mode.

## Start in release mode

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

To keep it running after you log out and after a restart of the server, start it with a process manager or a system service, for example systemd. The [Docker image](../install-docker/) runs in debug mode with `npm start`.

## Protect the server

- Set a [primary access token](../first-start/) before the server is reachable from the internet.
- OpenLogger listens on all network interfaces. Put it behind a reverse proxy such as Nginx with HTTPS, and let only the proxy reach the port of OpenLogger. Tokens travel in every request, so never use plain HTTP over the internet.
- If only your own servers send logs, allow only their addresses at the firewall or in the proxy.
- Give every app its own [API token](../api-tokens/).
- Back up the `databases` folder. See [Back up your data](../backups/).
