Change SECRET_KEY for existing installation?

Hi all,

I have a currently active installation with a less than ideal value for

[security]
SECRET_KEY = …

and I wonder if it’s safe to change this. Sorry if that’s been asked before, but I couldn’t find any info on it.

Cheers,

Marc

Why do you want to change that?
You can’t change it manually, otherwise some data cannot be decrypted normally.

1 Like

I wanted to change it because it’s pretty much a dictionary word. Thanks for your reply, this is what I thought :neutral_face:

I think Gitea needs a sub command to do that.

The only command I can find that has to do with SECRET_KEY is gitea generate secret SECRET_KEY, which only creates a new key. Looks like I have to live with the current key for now.