Details
Assignee
UnassignedUnassignedReporter
Mykola MarzhanMykola Marzhan(Deactivated)Priority
MediumNeeds QA
YesNeeds Doc
Yes
Details
Details
Assignee
Unassigned
UnassignedReporter
Mykola Marzhan
Mykola Marzhan(Deactivated)Priority
Needs QA
Yes
Needs Doc
Yes
Smart Checklist
Smart Checklist
Smart Checklist
Created October 11, 2017 at 8:31 AM
Updated March 27, 2024 at 2:58 PM
during pmmdemo.percona.com update we need to make a lot of manual steps to install letsencrypt certificates inside the container.
I propose to create docker variable LETSENCRYPT_DOMAIN for our usual container which will automate SSL certificates setup.
it is simple, it is needed to run only few commands
add the following lines to /etc/nginx/conf.d/pmm.conf # .well-known location /.well-known { alias /usr/share/pmm-server/.well-known; auth_basic off; } run commands # certbot certonly --agree-tos --register-unsafely-without-email --webroot -w /usr/share/pmm-server -d ${LETSENCRYPT_DOMAIN} # ln -f -s /etc/letsencrypt/live/${LETSENCRYPT_DOMAIN}/fullchain.pem /srv/nginx/certificate.crt # ln -f -s /etc/letsencrypt/live/${LETSENCRYPT_DOMAIN}/privkey.pem /srv/nginx/certificate.key # printf '#!/bin/bash\n\nexec /bin/certbot renew\nnginx -s reload\n' > /etc/cron.daily/certbot # chmod 755 /etc/cron.daily/certbot
Benefit:
all our users with public accessible PMM will have a possibility to get absolutely valid TLS/SSL certificates automatically for free.