mirror of https://github.com/zulip/zulip.git
generate_secrets: Remove unused local_database_password in production.
Fixes #13464. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
parent
d9c6471ea7
commit
7ebba2901a
|
@ -26,7 +26,6 @@ CAMO_CONFIG_FILENAME = '/etc/default/camo'
|
||||||
AUTOGENERATED_SETTINGS = [
|
AUTOGENERATED_SETTINGS = [
|
||||||
'avatar_salt',
|
'avatar_salt',
|
||||||
'initial_password_salt',
|
'initial_password_salt',
|
||||||
'local_database_password',
|
|
||||||
'rabbitmq_password',
|
'rabbitmq_password',
|
||||||
'shared_secret',
|
'shared_secret',
|
||||||
'thumbor_key',
|
'thumbor_key',
|
||||||
|
@ -85,6 +84,9 @@ def generate_secrets(development=False):
|
||||||
if need_secret(name):
|
if need_secret(name):
|
||||||
add_secret(name, generate_random_token(64))
|
add_secret(name, generate_random_token(64))
|
||||||
|
|
||||||
|
if development and need_secret("local_database_password"):
|
||||||
|
add_secret("local_database_password", generate_random_token(64))
|
||||||
|
|
||||||
if need_secret('secret_key'):
|
if need_secret('secret_key'):
|
||||||
add_secret('secret_key', generate_django_secretkey())
|
add_secret('secret_key', generate_django_secretkey())
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue