-
Notifications
You must be signed in to change notification settings - Fork 0
chore(ci): set KUBO_API_URL for staging and document the local v2 stack #1228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 6 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
9dfa513
chore(ci): set KUBO_API_URL for staging and document the local v2 stack
FSM1 cd25e92
chore(api): report an unset ROUTING_V1_URL at boot and tighten the re…
FSM1 4f413de
chore(ci): carry the pin-store rename into desktop-e2e and share one …
FSM1 e72380b
docs: ship the .env templates the recipe copies
FSM1 b5b064d
Merge remote-tracking branch 'origin/main' into fix/kubo-pin-store-co…
claude 2e6b0cf
Merge remote-tracking branch 'origin/main' into fix/kubo-pin-store-co…
claude ff32bb6
docs: gate the local recipe on service health and document the Web3Au…
FSM1 779c592
ci: drop the dead Redis plumbing from the desktop e2e workflow
FSM1 f548d52
ci: drop the legacy frontend build from the desktop e2e workflow
FSM1 3abf0b6
test: pin the routing diagnostic to its consequence, not the word walk
FSM1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| # CipherBox API — local development template. | ||
| # | ||
| # Copy to apps/api/.env; both the server and the migration CLI read it from | ||
| # the package directory, which `pnpm --filter @cipherbox/api ...` sets. | ||
| # Every name below is read by the code — docs/CONFIGURATION.md catalogues the | ||
| # optional knobs this template leaves out. | ||
| # | ||
| # LOCAL ONLY. The two secrets here are throwaway values for a loopback stack. | ||
| # Never reuse them in a deployed environment. | ||
|
|
||
| NODE_ENV=development | ||
| PORT=3000 | ||
| CORS_ALLOWED_ORIGINS=http://localhost:5173 | ||
|
|
||
| # Postgres, matching docker/docker-compose.yml's defaults. | ||
| DB_HOST=localhost | ||
| DB_PORT=5432 | ||
| DB_USERNAME=postgres | ||
| DB_PASSWORD=postgres | ||
| DB_DATABASE=cipherbox | ||
|
|
||
| # Signs access tokens. A deployed API must set its own; the code refuses to | ||
| # fall back outside development and test. | ||
| JWT_SECRET=local-dev-jwt-secret | ||
|
|
||
| # Enables POST /auth/test-login. Anyone holding this value can mint a session | ||
| # for any account outside production, where the route is hard-blocked. | ||
| TEST_LOGIN_SECRET=local-dev-test-secret | ||
|
|
||
| # Kubo RPC for the hosted pin store. Unset, every hosted write answers 503 — | ||
| # uploads and folder creates alike, since a record's head block goes through | ||
| # the same endpoint. | ||
| KUBO_API_URL=http://localhost:5001 | ||
|
|
||
| # The /routing/v1 endpoint the republisher resolves and re-PUTs through. | ||
| # 3001 is the compose stack's hermetic record store; someguy on 8190 is the | ||
| # real-DHT alternative. Must match the web app's VITE_ROUTING_ENDPOINTS. | ||
| ROUTING_V1_URL=http://localhost:3001 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| # CipherBox web app — local development template. | ||
| # | ||
| # Copy to apps/web/.env. Vite reads it at BUILD time, so rebuild after editing. | ||
| # Every name below is read by the code; the commented ones are genuinely | ||
| # optional and are left unset on purpose. | ||
|
|
||
| VITE_API_URL=http://localhost:3000 | ||
| VITE_ENVIRONMENT=local | ||
|
|
||
| # Where the engine resolves and publishes records. Must name the same backend | ||
| # as the API's ROUTING_V1_URL, or the republisher re-PUTs into a store this | ||
| # client never reads. Unset, it defaults to the public delegated-ipfs.dev, | ||
| # which will not see records this stack publishes. | ||
| VITE_ROUTING_ENDPOINTS=http://localhost:3001 | ||
|
|
||
| # Optional content-read accelerator, deliberately left unset: dormant is the | ||
| # fail-closed state, and a blank value must land there rather than configuring | ||
| # a gateway whose every request fails. Uncomment to point it at the compose | ||
| # Kubo gateway — but leave it absent rather than blank if you do not want it. | ||
| # VITE_READ_ACCELERATOR_URL=http://localhost:8080 | ||
|
|
||
| # Optional comma-separated public gateways the engine may read from. | ||
| # VITE_PUBLIC_GATEWAYS= | ||
|
|
||
| # Web3Auth Core Kit. Interactive login needs both. A clean checkout carries | ||
| # neither, so the UI renders but cannot create a session until they are set. | ||
| # VITE_WEB3AUTH_CLIENT_ID= | ||
| # VITE_WEB3AUTH_VERIFIER= | ||
|
FSM1 marked this conversation as resolved.
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.