mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-19 23:14:57 +02:00
Compare commits
1 Commits
fix/reacti
...
github-act
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b6ac0426fd |
@@ -48,17 +48,7 @@ function update_script() {
|
||||
export NODE_ENV="production"
|
||||
$STD pnpm install --frozen-lockfile
|
||||
$STD pnpm run build
|
||||
msg_info "Deploying Nitro Runtime Externals"
|
||||
$STD pnpm --filter=@reactive-resume/runtime-externals deploy --prod --legacy /tmp/rr-runtime
|
||||
cp -r /tmp/rr-runtime/node_modules/. /opt/reactive-resume/apps/web/node_modules/
|
||||
rm -rf /tmp/rr-runtime
|
||||
msg_ok "Deployed Nitro Runtime Externals"
|
||||
mv /opt/reactive-resume.env.bak /opt/reactive-resume/.env
|
||||
# Inject ENCRYPTION_SECRET if missing (required for AI providers since v5.1.4)
|
||||
if ! grep -q '^ENCRYPTION_SECRET=' /opt/reactive-resume/.env; then
|
||||
ENCRYPTION_SECRET=$(openssl rand -hex 32)
|
||||
echo "ENCRYPTION_SECRET=${ENCRYPTION_SECRET}" >> /opt/reactive-resume/.env
|
||||
fi
|
||||
msg_ok "Updated Reactive Resume"
|
||||
|
||||
msg_info "Updating Service"
|
||||
|
||||
@@ -34,17 +34,11 @@ export NODE_ENV="production"
|
||||
export CI="true"
|
||||
$STD pnpm install --frozen-lockfile
|
||||
$STD pnpm run build
|
||||
msg_info "Deploying Nitro Runtime Externals"
|
||||
$STD pnpm --filter=@reactive-resume/runtime-externals deploy --prod --legacy /tmp/rr-runtime
|
||||
cp -r /tmp/rr-runtime/node_modules/. /opt/reactive-resume/apps/web/node_modules/
|
||||
rm -rf /tmp/rr-runtime
|
||||
msg_ok "Deployed Nitro Runtime Externals"
|
||||
mkdir -p /opt/reactive-resume/data
|
||||
msg_ok "Built Reactive Resume"
|
||||
|
||||
msg_info "Configuring Reactive Resume"
|
||||
AUTH_SECRET=$(openssl rand -hex 32)
|
||||
ENCRYPTION_SECRET=$(openssl rand -hex 32)
|
||||
|
||||
cat <<EOF >/opt/reactive-resume/.env
|
||||
# Reactive Resume v5 Configuration
|
||||
@@ -60,8 +54,8 @@ DATABASE_URL=postgresql://${PG_DB_USER}:${PG_DB_PASS}@localhost:5432/${PG_DB_NAM
|
||||
# Authentication Secret (do not change after initial setup)
|
||||
AUTH_SECRET=${AUTH_SECRET}
|
||||
|
||||
# Encryption Secret (required for saved AI providers, do not change after initial setup)
|
||||
ENCRYPTION_SECRET=${ENCRYPTION_SECRET}
|
||||
# Printer (headless Chromium for PDF generation)
|
||||
PRINTER_ENDPOINT=http://127.0.0.1:9222
|
||||
|
||||
# Storage: uses local filesystem (/opt/reactive-resume/data) when S3 is not configured
|
||||
# S3_ACCESS_KEY_ID=
|
||||
@@ -84,9 +78,6 @@ ENCRYPTION_SECRET=${ENCRYPTION_SECRET}
|
||||
# GOOGLE_CLIENT_ID=
|
||||
# GOOGLE_CLIENT_SECRET=
|
||||
|
||||
# AI Agent (optional, required for the Agent workspace feature)
|
||||
# REDIS_URL=redis://localhost:6379
|
||||
|
||||
# Feature Flags
|
||||
# FLAG_DISABLE_SIGNUPS=false
|
||||
# FLAG_DISABLE_EMAIL_AUTH=false
|
||||
|
||||
Reference in New Issue
Block a user