Skip to content

Instantly share code, notes, and snippets.

@freemanirl
Created November 3, 2016 13:18
Show Gist options
  • Save freemanirl/984a004b270109688175884a213fffe7 to your computer and use it in GitHub Desktop.
Save freemanirl/984a004b270109688175884a213fffe7 to your computer and use it in GitHub Desktop.
LetsEncrypt Jenkins SSL Proxy Nginx
#!/bin/bash
yum install -y epel-release nginx
yum install -y certbot
sudo setsebool -P httpd_can_network_connect 1
# install well-known conf in nginx.
systemctl restart nginx.service
certbot certonly -a webroot --webroot-path=/usr/share/nginx/html -d jenkins.somesite.com
openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048
# install jenkins proxy conf in nginx.
systemctl restart nginx.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment