For me, this worked. I tried numerous endpoints and it was completely intermittent weighted on the fails. Once I made this change, I've restarted numerous times and it hasn't failed.
To modify how the docker does this, modify the /root/getvpnport.sh script.
Click the delugevpn docker image, select >_ Console
nano /root/getvpnport.sh
Add the variable in get_incoming_port_nextgen():
piaTokenUri="https://privateinternetaccess.com/gtoken/generateToken"
Replace the line:
token_json_response=$(curl --interface "${VPN_DEVICE_TYPE}" --silent --insecure -u "${VPN_USER}:${VPN_PASS}" "https://10.0.0.1/authv3/generateToken")
with:
token_json_response=$(curl --interface "${VPN_DEVICE_TYPE}" --silent --insecure -u "${VPN_USER}:${VPN_PASS}" ${piaTokenUri})
The top of the get_incoming_port_nextgen function with the changes: