Update market, account, and onion operations
Capture the current CyberLux UI, commerce, messaging, and Tor ops updates so local main can be pushed to the remote. Made-with: Cursor
This commit is contained in:
@@ -95,6 +95,21 @@ elif ! tor_is_active; then
|
||||
start_tor
|
||||
fi
|
||||
|
||||
# Hidden services proxy to nginx → Next on 127.0.0.1:3000. If Next is down, every .onion returns 502.
|
||||
if command -v curl >/dev/null 2>&1; then
|
||||
up="$(curl -g -sS -o /dev/null -w "%{http_code}" --connect-timeout 2 --max-time 5 "http://127.0.0.1:3000/" 2>/dev/null)" || up="000"
|
||||
if [[ ! "${up}" =~ ^(200|301|302|304)$ ]]; then
|
||||
echo "[!] Next.js is not serving on 127.0.0.1:3000 (HTTP ${up}) — onion URLs will fail until it is running." >&2
|
||||
echo " Start: cd ${REPO} && npm run start:onion or: sudo systemctl start cyberlux.service" >&2
|
||||
echo " Install service: sudo CYBERLUX_USER=\${SUDO_USER:-\$USER} bash ${REPO}/scripts/install-systemd.sh" >&2
|
||||
fi
|
||||
fi
|
||||
|
||||
# Refresh repo-root onion-urls.txt while we have root (hostname dirs are 0700 debian-tor).
|
||||
if [[ -f "${REPO}/scripts/export-onion-urls.sh" ]]; then
|
||||
bash "${REPO}/scripts/export-onion-urls.sh" || true
|
||||
fi
|
||||
|
||||
if [[ "${CYBERLUX_INSTALL_QUIET:-}" == "1" ]]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user