How do I specify an admin password in .CFConfig.json

I’m using a docker image (6.2.2.91-nginx) to create a lucee server. I’ve got a pre-defined .CFConfig.json file that is used to configure the Lucee instance, which is copied to the deploy location when the container is built. This all works fine.

I would like to specify a password in .CFConfig.json, or remove the existing password from the file so that Lucee prompts the user to enter a password. How would I do this?

To set a plain text password, use the key pw. To set an encrypted password, use hspw. We have the key in our .CFConfig.json file, but pull from an env variable:

"pw": "{env:LUCEE_ADMIN_PASSWORD}"

This thread might be helpful, too.

2 Likes

Great thanks! So it will pick up the PW automatically from your environment variables?

Yep, it works great for us.

1 Like