Skip to content

renemontilva/jenkins_nginx_proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jenkins_nginx_proxy

It is a reverse proxy for jenkins servers which are in private networks and they can receive event from git provider's webhook.

Configuration

Create users for basic auth

The .htpasswd file can be created either from your local machine or from nginx docker

from local machine

htpasswd -c site/.htpasswd user1

from docker machine

htpasswd -c /etc/nginx/site-available/.htpasswd user1

Create SSL certificate

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

Initialize dockers environment

docker-compose build
docker-compose up

Test it out

default credentials in .htpawwd file is username: user1 and pass: user1 Now connect to your browser with the following url: https://user1:user1@localhost

About

webhook proxy for jenkins

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published