Abreto / crossfire-all-in-one

A Docker Swarm solution which contains: Trojan, VMess/{WSS,H2}, SS/{WSS,H2}. ALL IN ONE. 小孩子才做选择
MIT License
9 stars 1 forks source link

Trojan don't reload the updated certificate #4

Open Abreto opened 4 years ago

Abreto commented 4 years ago

Certificates issued from Let's Encrypt need to be reissued every three months. We use caddy to play a role of "certbot".

Three months passed. We found that caddy correctly replaced the outdated certificates, but trojan didn't reload them, leaving the old one be used.

Let's fix it.

Abreto commented 4 years ago

Rerference: https://trojan-gfw.github.io/trojan/usage

Abreto commented 4 years ago
docker kill -s "SIGUSR1" <trojan_container_id>
Abreto commented 3 years ago
docker ps | grep trojangfw/trojan | awk '{print $1}' | xargs docker kill -s "SIGUSR1"
Abreto commented 2 years ago

crontab

0 5 1 * * docker ps | grep trojangfw/trojan | awk '{print $1}' | xargs docker kill -s "SIGUSR1"