CyberPanel Community

How to generate new SECRET_KEY in the settings.py file

jh
jhonathan #1

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 settings.py 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 https://djskgen.herokuapp.com/ and add to the settings.py file of each webserver, for security reasons. I wonder if this secret key is only in the settings.py file or also in other files and which ones.

Thanks in advance.

1 reply
Cy
CyberPanel #2

If you update in the settings.py file that should be enough.

Sign in to reply