mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-27 19:14:44 +00:00
plant-it: re-add JWT_SECRET (#11098)
Add JWT_SECRET generation and create server.env file. Removed in this PR: https://github.com/community-scripts/ProxmoxVE/pull/10259
This commit is contained in:
committed by
GitHub
parent
1293ed8c1f
commit
22e8c5bce7
@@ -26,6 +26,7 @@ USE_ORIGINAL_FILENAME="true" fetch_and_deploy_gh_release "plant-it" "MDeLuise/pl
|
|||||||
fetch_and_deploy_gh_release "plant-it-front" "MDeLuise/plant-it" "prebuild" "0.10.0" "/opt/plant-it/frontend" "client.tar.gz"
|
fetch_and_deploy_gh_release "plant-it-front" "MDeLuise/plant-it" "prebuild" "0.10.0" "/opt/plant-it/frontend" "client.tar.gz"
|
||||||
|
|
||||||
msg_info "Configured Plant-it"
|
msg_info "Configured Plant-it"
|
||||||
|
JWT_SECRET=$(openssl rand -base64 24 | tr -d '/+=')
|
||||||
mkdir -p /opt/plant-it-data
|
mkdir -p /opt/plant-it-data
|
||||||
cat <<EOF >/opt/plant-it/backend/server.env
|
cat <<EOF >/opt/plant-it/backend/server.env
|
||||||
MYSQL_HOST=localhost
|
MYSQL_HOST=localhost
|
||||||
|
|||||||
Reference in New Issue
Block a user