Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 838 Bytes

readme.md

File metadata and controls

44 lines (33 loc) · 838 Bytes

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