2024年6月4日星期二

NGINX + OAuth2-proxy + gitlab provide Authentication for all web applications behind the NGINX

Prerequisites:

1. All Installed in an AWS EC2 docker host.

2. install the next tools

 2.1. docker, docker-comose
 2.2. nginx-docker-compose.yaml 

version: '3.8'
services:
  nginx:
    image: nginx:latest
    ports:
    - "80:80"     # for http
    - "443:443" # for https. create and update by letsencrypt.
    volumes:
    - ./nginx.conf:/etc/nginx/nginx.conf  # for update from host 
    - ./certs:/etc/nginx/certs                  # for update from host by letsencrypt.

 2.2. nginx-conf





 



没有评论: