How to generate new SECRET_KEY in the file

Hello, I have a snapshot with CyberPanel installed that I would like to restore to my clients’ web servers, so I avoid reinstalling every time.

I have already created a bash script to update the machineIP file and another to update the root and CyberPanel database passwords, including updating the passwords in the file.

What I would like to know now is if I can generate a new SECRET_KEY, for example, with /dev/urandom or at that site and add to the file of each webserver, for security reasons. I wonder if this secret key is only in the file or also in other files and which ones.

Thanks in advance.

If you update in the file that should be enough.