It is a reverse proxy for jenkins servers which are in private networks and they can receive event from git provider's webhook.
The .htpasswd file can be created either from your local machine or from nginx docker
htpasswd -c site/.htpasswd user1
htpasswd -c /etc/nginx/site-available/.htpasswd user1
Create a private key and certificate in one command, from local machine
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ssl/private/proxy.key -out ssl/certs/proxy.crt
sudo chown $USER:$USER ssl/certs/proxy.crt
sudo chown $USER:$USER ssl/private/proxy.key
chmod 644 ssl/certs/proxy.crt
chmod 644 ssl/private/proxy.key
docker-compose build
docker-compose up
default credentials in .htpawwd file is username: user1 and pass: user1 Now connect to your browser with the following url: https://user1:user1@localhost