Inside of configuration/nginx/auth
run the following:
- Type in
htpasswd -c .htpasswd <username>
- Enter & Confirm your password
This leverages CertBot for the SSL certificate. In order for this to work you must doing the following:
- Make sure DNS is setup properly to point ot your instance - certbot will use your server for validation.
- Update lines
23
&24
ofconfiguration/nginx/conf.d/prombbq.conf
ssl_certificate /etc/nginx/ssl/live/<website_fqdn>/fullchain.pem;
ssl_certificate_key /etc/nginx/ssl/live/<website_fqdn>/privkey.pem;
Example
ssl_certificate /etc/nginx/ssl/live/prombbq.kolbyallen.com/fullchain.pem;
ssl_certificate_key /etc/nginx/ssl/live/prombbq.kolbyallen.com/privkey.pem;
- Update line
99
indocker-compose.yml
command: certonly --webroot --webroot-path=/var/www/certbot --email <your-eail-address> --agree-tos --no-eff-email -d <website_fqdn> -d www.<website_fqdn>
Example
command: certonly --webroot --webroot-path=/var/www/certbot --email <your-eail-address> --agree-tos --no-eff-email -d prombbq.kolbyallen.com -d www.prombbq.kolbyallen.com