-
-
Save cwilby/e69ca3f44364925fdd469a65bd4190df 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 | |
sudo apt-get install -y epel-release nginx certbot | |
sudo apt-get 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.cwserve.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