whatsapp-http-api
whatsapp-http-api copied to clipboard
Cloudflare and HTTPS issue
First of all, you guys are awesome! This is the one i've been looking for a whole year.
I saw there are configuration to setup using a domain and there's env variables to use SSL and Cert path there. But i just wondering how can i put the domain with SSL from cloudflare without enabling it in configuration, should i stick to disable WAHA_HTTPS_ENABLED
. This is the configuration file i used.
docker run -it -e "WHATSAPP_DEFAULT_ENGINE=NOWEB" -e "WHATSAPP_SWAGGER_USERNAME=<username>" -e "WHATSAPP_SWAGGER_PASSWORD=<password>" -e "WHATSAPP_DASHBOARD_USERNAME=<username>" -e "WHATSAPP_DASHBOARD_PASSWORD=<password>" -e "WHATSAPP_API_KEY=<keys>" -e "WHATSAPP_HOOK_URL=<hooks>" -e "DOMAIN=<domain>" -e "WAHA_HTTPS_ENABLED=true" -e "WAHA_HTTPS_PATH_KEY=/etc/letsencrypt/live/<domain>/privkey.pem" -e "WAHA_HTTPS_PATH_CERT=/etc/letsencrypt/live/<domain>/cert.pem" -e "WAHA_HTTPS_PATH_CA=/etc/letsencrypt/live/<domain>/chain.pem" -e "WHATSAPP_API_HOSTNAME=<domain>" -p 3000:3000/tcp devlikeapro/waha-plus
When running this command, it gives me error something like this.
Do you guys have any idea how to solve this, should i stick using the SSL from server or switch using cldouflare instead.
Thank you in advance!