Skip to content

Commit 6af6414

Browse files
committed
Fix load SECRET_KEY from correct file
Before: everyone was using same hardcoded SECRED_KEY Enduser will need to run 'python manage.py setclusters clusters.yaml' again. Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
1 parent 9d3d0ad commit 6af6414

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

setup/collections/ansible_collections/ansible/containerized_installer/roles/automationdashboard/templates/django_dashboard_conf.py.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
with open("/etc/dashboard/SECRET_KEY") as fin:
2+
SECRET_KEY = fin.read()
3+
14
ALLOWED_HOSTS=["*"]
25
CORS_ALLOWED_ORIGINS = [
36
"http://localhost:8080",

0 commit comments

Comments
 (0)