netbox: fix uffd secret path

(turns out it's not a good idea to put it into a non-persistant directory)
This commit is contained in:
stuebinm 2022-12-17 16:36:53 +01:00
parent ba5bcf601c
commit 015f66d749

View file

@ -39,7 +39,7 @@
REMOTE_AUTH_BACKEND = 'social_core.backends.uffd.UffdOAuth2' REMOTE_AUTH_BACKEND = 'social_core.backends.uffd.UffdOAuth2'
SOCIAL_AUTH_UFFD_KEY = "netbox" SOCIAL_AUTH_UFFD_KEY = "netbox"
SOCIAL_AUTH_UFFD_BASE_URL = "https://login.infra4future.de" SOCIAL_AUTH_UFFD_BASE_URL = "https://login.infra4future.de"
with open("/uffd-secret", "r") as file: with open("/persist/var/lib/uffd-secret", "r") as file:
SOCIAL_AUTH_UFFD_SECRET = file.readline().replace("\n", "") SOCIAL_AUTH_UFFD_SECRET = file.readline().replace("\n", "")
''; '';
}; };