Skip to Content
Gabriele Gatto Garanet

Gabriele Gatto

Garanet 2005/2025

  • Development
  • Job Career
  • Skills
  • Press
  • Notes
Development

Python-Flask API with 2 Endpoints on Docker behind NGINX Auth

19 September 20214 November 2023

This project shows how you can create a python flask API with docker behind a reverse proxy to protect different /endpoints.

A Python Flask API with 2 Endpoints on Docker behind NGINX Auth

Python-Flask API with 2 Endpoints on Docker behind NGINX Auth
Python-Flask API with 2 Endpoints on Docker behind NGINX Auth

It could be easily integrated with different pipelines to trigger when a Dockerfile or your app.py changes.

In the main folder, you’ll find a bash script to create or shut down the containers.

The script also is checking with a curl command if the containers are working or not.

In order to run it, You need to have installed on your PC/MacOsX/Linux, Docker, and docker-compose.

Python-Flask API with 2 Endpoints on Docker behind NGINX Auth
Python-Flask API with 2 Endpoints on Docker behind NGINX Auth

The complete guide from the repo sites:

GitHub: https://github.com/garanet/Docker-Python-Flask-with-NGINX-for-AUTH

SourceForge: https://sourceforge.net/p/docker-python-flask-nginx-auth/code/ci/main/tree/

A similar project is here:

-> https://www.garanet.net/k8s-php-postgresql-redis/

apiAuthci/cddockerendpointsgitlabgitopsLoginnginxpipelinesproxyPython-Flaskreverse

Post Navigation

A K8s PHP POSTGRESQL REDIS
A K8s PHP POSTGRESQL REDIS
AWS protected S3 website with CloudFront using Lambda@Edge.
AWS protected S3 website with CloudFront using Lambda@Edge.

Related Post

monitor_server_linux_garanet

Monitor Linux Server Incidents

LDAP-Python3 rds aws

LDAP-Python3 & RDS-Aurora-to-AD

AWS SalesForce

AWS-SalesForce

apache modmellon garanet

Apache mod_mellon basic installation and configuration on Ubuntu

A FastAPI, SQLAlchemy & Uvicorn to fetch a Google Sheet

FastAPI, SQLAlchemy & Uvicorn

Drivers – Huawei E159/E169.

Drivers – Huawei E159 / E169.

Social Links

linkedingithubsourceforge

Navigation

  • Development
  • Job Career
  • Skills
  • Press
  • Notes

Tags

api (3) AWS (8) Backup (4) Bash (3) cabo (2) cluster (2) cms (3) cronjob (4) database (5) docker (3) fanclub (3) Five On Line (3) Full (3) Gabriele Gatto (5) gatto (2) Ghigo (5) gitops (2) installazione (6) kubernetes (4) lambda (3) linux (9) Litfiba (13) margheri (3) master (2) MongoDB (3) mysql (5) notes (2) olanda (3) Pelú (3) php (4) PostgreSQL (3) project (3) puppet (4) python (4) rds (3) Renzulli (7) reunion (4) rotterdam (5) Script (10) server (4) sops (2) stato libero (3) Ubuntu (5) ufficiale (6) website (6)
© Copyright Gabriele Gatto. All Rights Reserved.Privacy policy