I haven't dug into the code yet, but does anyone k...
# lucee
b
I haven't dug into the code yet, but does anyone know where the unique ID for a Lucee installation is stored? The one you get from
getLuceeID().server.id
Meh, I poked a stick at the source. It seems the ID above is an MD5 hash of • a securty key, which defaults to a UUID and is written to the
id
file in the root of the web/server context folder on first start • a security token which is just an MD5 hash of the config dir (basically the web/server context root)
So to answer my own question-- in order to make sure every Docker container's CommandBox CLI's embedded Lucee instance has a unique ID, I need to delete the two files •
~/.CommandBox/engine/cfml/cli/lucee-server/context/id
•
~/.CommandBox/engine/cfml/cli/cfml-web/id
FWIW, Lucee has logic to include the MAC address in the hash, but it doesn't seem to be in use
a
Keep up these musings/questions, Brad. Even if you answer them yourself. Adds value to me swinging by the cfml slack everyday. Usually stuff I know I will need to know one day ...
👍 2