byteNative
Cloud & DevOps

Nginx

A web server and load balancer with TLS termination and sticky sessions.

What is Nginx?

Nginx is a proven web server and reverse proxy known for its excellent performance. It receives incoming requests, routes them to the right services and reliably takes care of the encrypted connection. Its event-driven model handles thousands of concurrent connections with minimal memory, which is why it stays calm under load. Whether as a load balancer, a cache in front of a slow application or for serving static files, it quietly does its job in the background.

More in the documentation

How we use it

When we run applications on our own infrastructure, Nginx often sits right at the front as a reverse proxy, terminates TLS and passes requests cleanly to the services behind it. Static content it serves directly, without bothering your app with it. As a load balancer in front of several instances, it keeps your service reachable even under a rush.

nginx
server {
  listen 443 ssl;
  server_name app.example.com;

  location / {
    proxy_pass http://127.0.0.1:3000;
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  }
}
reverse proxy to a local service

Good to know

After every config change it pays to run nginx -t before reloading. The test catches typos before a broken reload takes your running server down.

00Cloud & DevOps

More tools we work with in the same area.

Which technology fits you?

You don't have to decide that, it's our job. Tell us about your plans.