Skip to content

Create random passwords [WIP]

Dean Kayton edited this page Aug 16, 2021 · 3 revisions

Current way, this could potentially change in the future and should eventually find its way into docs

For Traefik

RAW_PASSWD=$(pwgen 16 1); ENCODED_PASSWD=$(echo ${RAW_PASSWD} | htpasswd -niB admin)


echo $RAW_PASSWD

Jukahpheiphaer2I

echo $ENCODED_PASSWD

admin:$2y$05$4CtOIRMsMLQ5cDSBwgmJBOryIFe0INFRZDNbhGimEDBtEv6tVxx7i


In .envrc:

# Jukahpheiphaer2I
export TRAEFIK_BASICAUTH_USERS='admin:$2y$05$4CtOIRMsMLQ5cDSBwgmJBOryIFe0INFRZDNbhGimEDBtEv6tVxx7i'

The rest of the passwords are raw and can be generated with pwgen directly