Generate a 64 byte key, instead of 224 (#73)

Homarr expects exactly a 64 character long secret key. See #72
.
This commit is contained in:
brnl
2025-06-23 15:05:16 +02:00
committed by GitHub
parent ffede4f375
commit 8aaf54c572

View File

@@ -215,7 +215,7 @@ class ContainerConfig:
) )
def homarr(self): def homarr(self):
key = os.urandom(124).hex() key = os.urandom(32).hex() # Because os.urandom(32) generates 32 random bytes, and .hex() converts each byte into two hexadecimal characters.
return ( return (
' homarr:\n' ' homarr:\n'
' image: ghcr.io/homarr-labs/homarr:latest\n' ' image: ghcr.io/homarr-labs/homarr:latest\n'