Skip to content

Commit f0505f0

Browse files
committed
doc: Document obelisk API passing
1 parent a8f16de commit f0505f0

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

.envrc-example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
use flake .
22

3+
export OBELISK__API__TOKEN=$(obelisk generate token --json | jq -r .token)
4+
35
# Needed for fly-http activity and
46
export FLY_API_TOKEN="..."
57

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ While the workflow is running, push the secrets of your `.envrc` to the Fly.io a
4747
either using `fly` command, Fly.io's dashboard or using following [script](scripts/secrets-send.sh):
4848

4949
```sh
50-
./scripts/secrets-send.sh .envrc FLY_API_TOKEN
50+
./scripts/secrets-send.sh .envrc FLY_API_TOKEN OBELISK__API__TOKEN
5151
```
5252

5353
The following secret is required by the app:
@@ -98,6 +98,10 @@ Proxy the gRPC port 5005 of the `obelisk` VM:
9898
```sh
9999
flyctl proxy 5005 $(fly machine list --json | jq -r '.[] | select(.name == "obelisk") | .private_ip')
100100
```
101+
To access the web console, proxy the port 8080 as well:
102+
```sh
103+
flyctl proxy 8080 $(fly machine list --json | jq -r '.[] | select(.name == "obelisk") | .private_ip')
104+
```
101105

102106
Verify the port tunneling works:
103107
```sh
@@ -113,10 +117,9 @@ just app-init "$(FLY_APP_NAME=$NEW_APP_NAME ./scripts/json-app-init-itself.sh)"
113117

114118
Push the secret to the inner app:
115119
```sh
116-
FLY_APP_NAME=$NEW_APP_NAME ./scripts/secrets-send.sh .envrc FLY_API_TOKEN
120+
FLY_APP_NAME=$NEW_APP_NAME ./scripts/secrets-send.sh .envrc FLY_API_TOKEN OBELISK__API__TOKEN
117121
```
118122

119-
To access the web console, proxy the port 8080 as well.
120123

121124
Don't forget to delete the inner and outer app afterwards.
122125

File renamed without changes.

0 commit comments

Comments
 (0)