mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
searx: Increase the secret key length to 64 bytes
Although 32 bytes is sufficient, 64 bytes has been recommended by a few sources. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
619c3cf79c
commit
f10f0438df
@ -74,7 +74,7 @@ def _copy_uwsgi_configuration():
|
||||
|
||||
def _generate_secret_key(settings):
|
||||
"""Generate a secret key for the Searx installation."""
|
||||
secret_key = secrets.token_hex(32)
|
||||
secret_key = secrets.token_hex(64)
|
||||
settings['server']['secret_key'] = secret_key
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user