Files
spacesops/setup-spacesops-startos.sh
T
spacesopsandCursor a08087b072 Add reserved handle pricing, quote management, and tenant DB hardening.
Reserved handles can carry an optional preset price that overrides tenant pricing strategy; handles without a price are quoted as unavailable. Adds handles.price migration, tenant-handles UI, quote delete API, automatic quote retention (KEEP_QUOTES_FOR_DAYS), and resilient tenant schema application for invalid DB files.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-15 01:00:05 -04:00

48 lines
2.1 KiB
Bash

#!/bin/bash
# Source this file with: source setup-spacesops-startos.sh
export PS1='ops:\w$ '
export OPERATOR_SECRET_HEX=8e8df1d4f46da660ba1eaa55ddc115f3f334474e88a232107a024beee6dfe4b7
export OPERATOR_PUBLIC_HEX=23b22c3f8dd72743fd2d8148d6d7f4666925b8c1c9502968d14ad50c2a33364f
export PLATFORM_MODE=prod
# export PLATFORM_MODE=test
export PUBLIC_PLATFORM_HOST=spacesops.com
export PLATFORM_HOST=0.0.0.0
export PLATFORM_PORT=7264
export PLATFORM_CALLBACK_HOST=spacesops.startos
export SPACED_RPC_HOST=natural-dean.local
export SPACED_RPC_PORT=52611
export SPACED_RPC_URL=https://${SPACED_RPC_HOST}:${SPACED_RPC_PORT}
export SPACED_RPC_USER=spaces
export SPACED_RPC_PASSWORD=BTGfSC6BZOzSfzYumZ8NwIN6oPbQShNy
export SPACED_RPC_WALLET=main
export NODE_TLS_REJECT_UNAUTHORIZED=1
# *.local hostnames are reached off-box; trust the StartOS root CA (also used by subsFetch).
_SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
export NODE_EXTRA_CA_CERTS="${NODE_EXTRA_CA_CERTS:-${_SCRIPT_DIR}/certs/startos-local-root-ca.pem}"
export PLATFORM_DB_PATH=./data/local.db
export OPERATOR_RELAY=wss://relay.primal.net
export SUBS_RPC_HOST=spaces.startos
export SUBS_RPC_PORT=7777
export SUBS_RPC_URL=http://${SUBS_RPC_HOST}:${SUBS_RPC_PORT}
export SUBS_URI_VALUE=http://${SUBS_RPC_HOST}:${SUBS_RPC_PORT}/
export SUBS_QUERY_TEST=http://${PLATFORM_HOST}:${PLATFORM_PORT}/spaces/%40space/admin?format=json
export SUBS_RPC_USER=subs
export SUBS_RPC_PASSWORD=SomethingElse
export USE_TEST_FEE_RATES=FALSE
export USE_SUBS_ALT_URI=FALSE
# echo "SUBS_QUERY_TEST: ${SUBS_QUERY_TEST}"
export COINGECKO_API_KEY=CG-MiTdjasB19RMf4dcJW8DyAFe
export COINGECKO_TOKEN_COINS=bitcoin,tether-gold
export NACHO_SEARCH_SPACE=bitcoin2026
export NACHO_QUERY_TEST=http://127.0.0.1:${PLATFORM_PORT}/spaces/mad/admin?format=json
export NACHO_CURL_TEST="curl 'https://127.0.0.1:${PLATFORM_PORT}/api/proposed' -H 'accept: */*' -H 'accept-language: en-US,en;q=0.7' -H 'content-type: application/json' -H 'sec-fetch-dest: empty' -H 'sec-fetch-mode: cors' -H 'sec-fetch-site: cross-site' -H 'sec-gpc: 1' --data-raw '{\"query\":\"something\"}'"
echo "npm run start"