This is an automation code for DNS challenge that can be used when HTTP challenge cannot be done while using namecheap. In my case, I had no choice but to choose DNS challenge because the telecommunication carrier blocked port 80 from being used.
- set namecheap api
cp .env-namecheap-template .env-namecheap
cp .env-nginx-template .env-nginx
- edit
.env-namecheap
,.env-nginx
- edit
DRY_RUN env
in docker-compse.yaml docker-compose up -d