This mini reverse proxy docker image (based on nginx.alpine) redirects all the web traffic to specified endpoints providing SSL encryption, gzip response compression and HTTP/2 request encoding along the way. Response is equipped with certain headers for improved security. All requests over http (port 80) will be redirected to https (port 443). Load balancing will be added soon!
- Clone repository to your own drive:
git clone https://github.com/Mannhattan/stargate.git
-
Put your SSL certificates in config/ssl folder.
-
Build docker image:
docker build . -t stargate
- Start docker container:
docker run -d -p 80:80 -p 443:443 --name stargate stargate
- Voila!