Skip to content

Nginx

High-Performance Web Server and Reverse Proxy

nginx diagram

Nginx is a high-performance web server, reverse proxy, and load balancer known for its speed, scalability, and reliability. Widely used by web developers and system administrators, Nginx is capable of handling large volumes of concurrent connections while consuming minimal system resources. It excels in serving static content, handling dynamic requests, and efficiently distributing incoming traffic across multiple servers.

Key Features

  • High Performance: Nginx is designed to deliver exceptional performance and low-latency responses, making it ideal for high-traffic websites and applications.
  • Reverse Proxy: Nginx can act as a reverse proxy, forwarding requests from clients to backend servers, and delivering responses back to clients, enhancing security and performance.
  • Load Balancing: Nginx provides built-in load balancing capabilities, enabling distribution of incoming traffic across multiple servers to optimize resource utilization and maintain application availability.
  • SSL/TLS Termination: Nginx supports SSL/TLS termination, allowing it to handle encryption and decryption of HTTPS traffic, enhancing security and offloading SSL processing from backend servers.
  • Flexible Configuration: Nginx offers a flexible and powerful configuration language, allowing users to define complex routing rules, URL rewriting, caching policies, and more.

Getting Started

To get started with Nginx, download and install the software from the official website, or use pre-built packages available for various Linux distributions. The website provides comprehensive documentation, tutorials, and guides to help you set up and configure Nginx for your specific use case.

Community and Support

Join the Nginx community on GitHub to engage with other users, ask questions, share your projects, and contribute to the project. Stay informed about the latest updates, features, and best practices through community discussions and announcements.

Harness the power and performance of Nginx—a versatile and reliable web server and reverse proxy for building scalable and resilient web applications.

Volumes

/nfs-nas-swarm/config/
/nfs-nas-swarm/data/

Deployment

No Special requirments

Docker swarm file

version: '3.3'
services:
  nginx:
    image: nginx:latest
    environment:
      PGID: '911'
      PUID: '911'
      TZ: Europe/Amsterdam
    networks:
     - traefik-public
    logging:
      driver: json-file
    deploy:
      labels:
        traefik.http.routers.nginx-http.middlewares: https-redirect
        # traefik.http.routers.nginx-https.middlewares: 500error@file
        traefik.http.routers.nginx-http.entrypoints: http
        traefik.http.services.nginx.loadbalancer.server.port: '80'
        traefik.http.routers.nginx-https.tls.certresolver: le
        traefik.constraint-label: traefik-public
        traefik.http.routers.nginx-https.entrypoints: https
        traefik.http.routers.nginx-http.rule: Host(`nginx.vnerd.nl`)
        traefik.docker.network: traefik-public
        traefik.enable: 'true'
        traefik.http.routers.nginx-https.tls: 'true'
        traefik.http.routers.nginx-https.rule: Host(`nginx.vnerd.nl`)
      placement:
        constraints:
         - node.labels.Arch==i686
networks:
  traefik-public:
    external: true

Notes

Comments