Closed hikufi-dev closed 1 month ago
Hi @suchorski
In the installation instructions on the 6th item why not reload nginx so it uses the new certificate? I'm pretty sure you have to reload, otherwise nginx won't use the new certificate. You haven't had any issues?
Clone this repository on your local computer;
Create a .env and configure it according to your needs (see below);
Run docker compose -f docker-compose-ssl.yml up -d to generate the SSL certificates;
Run docker compose -f docker-compose-ssl.yml down to stop the container;
Run docker compose up -d to start the stack;
Configure the crontab to renew the SSL certificates automatically each 12 hours with the command:
docker compose -f /path/to/docker-compose.yml up certbot && docker compose -f /path/to/docker-compose.yml exec nginx nginx -s reload
You are right. Do you have any suggestion? I will put a second crontab to reload nginx
@suchorski having compose -f /path/to/docker-compose.yml up certbot && docker compose -f /path/to/docker-compose.yml exec nginx nginx -s reload
in the crontab as just one entry should suffice.
Will update that. Thanks
Hi @suchorski
In the installation instructions on the 6th item why not reload nginx so it uses the new certificate? I'm pretty sure you have to reload, otherwise nginx won't use the new certificate. You haven't had any issues?
docker compose -f /path/to/docker-compose.yml up certbot && docker compose -f /path/to/docker-compose.yml exec nginx nginx -s reload