Skip to content

iakov-kaiumov/python-reverse-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple reverse proxy with Python and FastAPI

A simple solution that suppors any types of requests and authorization.

⚡Quick Start

  1. Clone this repository

    git clone https://github.com/iakov-kaiumov/python-reverse-proxy.git
  2. Install requirements

    pip install -r requirements.txt
  3. Set desired hostname in the main.py

    HOSTNAME = 'hostname.com'
  4. Run locally

    uvicorn main:app --reload --port 8000
  5. Open http://localhost:8000

🐳 Docker

  1. Build the image locally:

    docker build --no-cache -t reverseproxy .
  2. Run image:

    docker run -d --name flowise -p 8000:8000 reverseproxy
  3. Stop image:

    docker stop reverseproxy