Custom Certificates pada Bunker Web

catatan aja..karena tuts ini lumayan sulit dicari :

I have been having the same issue and couldn’t find a solution and been experimenting. So, for someone who face the same issue can follow below instructions to resolve your issue with using a wildcard certificate for all your services.

Convert your certificate to Base64 by running the following command:
base64 -w 0 your_certificate.pem
Convert your private key to Base64 by running:
base64 -w 0 your_certificate.pem
Create a .env file in the same folder as docker-compose.yml with the following variables:
CUSTOM_CERT=your_certificate_contents_in_base64
CUSTOM_KEY=your_private_key_contents_in_base64
In your docker-compose.yml file, add these environment variables under the relevant service:
environment:

  • subdomain.domain.com_CUSTOM_SSL_CERT_DATA=${CUSTOM_CERT}
  • subdomain.domain.com_CUSTOM_SSL_KEY_DATA=${CUSTOM_KEY}

sumber : https://github.com/bunkerity/bunkerweb/issues/1175


Leave a Reply