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 = [
|
_DO_NOT_IMPORT_KEYS_DOCKER = [
|
||||||
'PLEXPY_AUTO_UPDATE', 'GIT_REMOTE', 'GIT_BRANCH'
|
'PLEXPY_AUTO_UPDATE', 'GIT_REMOTE', 'GIT_BRANCH'
|
||||||
]
|
]
|
||||||
|
_DO_NOT_DOWNLOAD_KEYS = [
|
||||||
|
'PMS_TOKEN', 'JWT_SECRET'
|
||||||
|
]
|
||||||
|
|
||||||
IS_IMPORTING = False
|
IS_IMPORTING = False
|
||||||
IMPORT_THREAD = None
|
IMPORT_THREAD = None
|
||||||
|
|
|
@ -4848,8 +4848,8 @@ class WebInterface(object):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
cfg = config.Config(config_copy)
|
cfg = config.Config(config_copy)
|
||||||
cfg.PMS_TOKEN = ''
|
for key in config._DO_NOT_DOWNLOAD_KEYS:
|
||||||
cfg.JWT_SECRET = ''
|
setattr(cfg, key, '')
|
||||||
cfg.write()
|
cfg.write()
|
||||||
except:
|
except:
|
||||||
cherrypy.response.status = 500
|
cherrypy.response.status = 500
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue