소스 검색

[desktop] Allow secret key to be passed in an environment variable

Erick Tryzelaar 10 년 전
부모
커밋
5c55a8672c
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      desktop/core/src/desktop/conf.py

+ 4 - 0
desktop/core/src/desktop/conf.py

@@ -1190,6 +1190,10 @@ def get_redaction_policy():
 
 
 def get_secret_key():
+  secret_key = os.environ.get('HUE_SECRET_KEY')
+  if secret_key is not None:
+    return secret_key
+
   secret_key = SECRET_KEY.get()
   if not secret_key:
     secret_key = SECRET_KEY_SCRIPT.get()