Closed 1Dimension1 closed 1 year ago
Looks like its only set when using secrets and not environment variables.
if [ -e /run/secrets/NORDVPN_CREDS ]; then
My password is still in environment for now
Fixed it for now quick and dirty
#Use secrets if present
if [ -e /run/secrets/NORDVPN_CREDS ]; then
....
else
logincmd="login --username ${NORDVPN_LOGIN} --password "${NORDVPN_PASS}""
fi
Token is the preferred method as your credentials are not exposed. Login/password should be OK though . I ll have to look at it.
I agree, will try and make a token :) Thanks for your work.
Seems like logincmd is not set when using login + pass
/app/start_vpn.sh: line 149: logincmd: unbound variable 2022-12-23 10:25:30: ERROR: NORDVPN: cannot login: 2022-12-23 10:25:30,502 INFO exited: start_vpn (exit status 1; not expected)
I'm still using this in my docker compose:
Do i need to use another method to login ?