A simple solution that suppors any types of requests and authorization.
-
Clone this repository
git clone https://github.com/iakov-kaiumov/python-reverse-proxy.git
-
Install requirements
pip install -r requirements.txt
-
Set desired hostname in the
main.py
HOSTNAME = 'hostname.com'
-
Run locally
uvicorn main:app --reload --port 8000
-
Build the image locally:
docker build --no-cache -t reverseproxy .
-
Run image:
docker run -d --name flowise -p 8000:8000 reverseproxy
-
Stop image:
docker stop reverseproxy