Files
neon/proxy/SUBZERO.md
2025-06-20 15:10:45 +03:00

964 B

Subzero

Setup

In the root of the proxy folder, run:

Let's create self-signed certificate by running:

openssl req -new -x509 -days 365 -nodes -text -out server.crt -keyout server.key -subj "/CN=*.local.neon.build"

bring up the database using docker compose

docker compose up -f subzero/docker-compose.yml -d

bring up the local proxy (but disable pg_session_jwt extension installation)

cargo run --bin local_proxy -- \
  --disable-pg-session-jwt \
  --config-path proxy/subzero/local_proxy.json \
  --http 0.0.0.0:7432

bring up the proxy (auth broker) which also handles the /rest routes handled by subzero code

LOGFMT=text cargo run --bin proxy -- \
  --is-auth-broker true \
  --is-rest-broker true \
   -c server.crt -k server.key \
  --wss 0.0.0.0:8080 \
  --http 0.0.0.0:7002 \
  --auth-backend cplane-v1
curl -k -i \
  -H "Authorization: Bearer $NEON_JWT" \
  "https://127.0.0.1:8080/rest/v1/items"