nginx

  1. nginx/nginx as a load balancer
  2. nginx stream
  3. nginx - serve static websites
  4. nginx - run php
  5. nginx - ssl-tls config
  6. nginx - Layer 4 load balancing
  7. nginx conf for docker compose config
  8. nginx - reverse proxy

Check nginx config

nginx -t

Installation

Ubuntu

sudo apt install nginx

Running with docker

docker run -it --rm -d -p 8080:80 --name web nginx
docker run -it --rm -d -p 8080:80 --name web -v /root/test_webroot:/usr/share/nginx/html nginx

Using openssl to generate self signed certificate

Reference

  1. How To Create a Self-Signed SSL Certificate for Nginx in Ubuntu 16.04 | DigitalOcean

SSL Passthrough for Spring Boot

Reference

  1. java - Unable to SSL Pass through Ingress Nginx Controller - Stack Overflow

Redirection