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:
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user