Created
November 3, 2016 13:18
-
-
Save freemanirl/984a004b270109688175884a213fffe7 to your computer and use it in GitHub Desktop.
LetsEncrypt Jenkins SSL Proxy Nginx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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