mirror of
https://src.koozali.org/infra/smeserver-koji.git
synced 2024-12-21 23:17:01 +01:00
make web secret random
This commit is contained in:
parent
452588882e
commit
1690d98814
@ -104,6 +104,8 @@ fi
|
||||
dnf install -y mod_ssl koji-web $QUIET
|
||||
|
||||
# install locally
|
||||
# create secret
|
||||
SECRET="$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c 32)"
|
||||
mkdir -p /etc/kojiweb
|
||||
cat > /etc/kojiweb/web.conf <<- EOF
|
||||
[web]
|
||||
@ -114,7 +116,7 @@ WebCert = $KOJI_PKI_DIR/kojiweb.pem
|
||||
ClientCA = $KOJI_PKI_DIR/koji_ca_cert.crt
|
||||
KojiHubCA = $KOJI_PKI_DIR/koji_ca_cert.crt
|
||||
LoginTimeout = 72
|
||||
Secret = NITRA_IS_NOT_CLEAR
|
||||
Secret = "$SECRET"
|
||||
LibPath = /usr/share/koji-web/lib
|
||||
LiteralFooter = True
|
||||
EOF
|
||||
|
Loading…
Reference in New Issue
Block a user