mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 06:00:51 -07:00
Add do not download keys to config
This commit is contained in:
parent
81dc790a0c
commit
71d64a4b3f
2 changed files with 5 additions and 2 deletions
|
@ -222,6 +222,9 @@ _DO_NOT_IMPORT_KEYS = [
|
|||
_DO_NOT_IMPORT_KEYS_DOCKER = [
|
||||
'PLEXPY_AUTO_UPDATE', 'GIT_REMOTE', 'GIT_BRANCH'
|
||||
]
|
||||
_DO_NOT_DOWNLOAD_KEYS = [
|
||||
'PMS_TOKEN', 'JWT_SECRET'
|
||||
]
|
||||
|
||||
IS_IMPORTING = False
|
||||
IMPORT_THREAD = None
|
||||
|
|
|
@ -4848,8 +4848,8 @@ class WebInterface(object):
|
|||
|
||||
try:
|
||||
cfg = config.Config(config_copy)
|
||||
cfg.PMS_TOKEN = ''
|
||||
cfg.JWT_SECRET = ''
|
||||
for key in config._DO_NOT_DOWNLOAD_KEYS:
|
||||
setattr(cfg, key, '')
|
||||
cfg.write()
|
||||
except:
|
||||
cherrypy.response.status = 500
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue