Skip to content

Going to production

nvs serve is the development server and the production server. The same command runs in both places. In production it runs as a service, behind a reverse proxy that handles TLS.

  • Run as a service starts the server at boot on Linux and Windows, and restarts it after a failure.
  • Docker runs the server in a container.
  • Deploy a new version switches to a new release, and nvs reload makes the running server use it at once.
  • Behind a reverse proxy shows nginx and Caddy with HTTPS, HTTP/2 and HTTP/3, and passes the real address of the client to your program.
  • Limits and logs sets the limits for each request and where the log goes.
  • Security checklist lists what to check before the first request.

Read Install on a server first. It shows where the binary, the configuration and the logs go.