Closed inertia186 closed 6 years ago
It would be beneficial to also include information on how to use jussi to direct different API calls to different servers.
It doesn't look like we have a default configuration yet. Ideally, we should be able to kick off a local instance with:
git clone https://github.com/steemit/jussi.git
cd jussi
docker build -t="$USER/jussi:$(git rev-parse --abbrev-ref HEAD)" .
docker run -itp 9000:8080 "$USER/jussi:$(git rev-parse --abbrev-ref HEAD)"
Looking at these issues, I can get it to work:
https://github.com/steemit/jussi/issues/143 https://github.com/steemit/jussi/issues/103
My diff
ended up being:
diff --git a/Dockerfile b/Dockerfile
index c6d15db..2ad9374 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -21,7 +21,7 @@ ENV APP_CMD jussi.serve
ENV JUSSI_SERVER_HOST 0.0.0.0
ENV JUSSI_SERVER_PORT 9000
ENV JUSSI_UPSTREAM_CONFIG_FILE ${APP_ROOT}/PROD_UPSTREAM_CONFIG.json
-ENV JUSSI_TEST_UPSTREAM_URLS True
+ENV JUSSI_TEST_UPSTREAM_URLS False
# all nginx env vars must also be changed in service/nginx/nginx.conf
ENV NGINX_SERVER_PORT 8080
diff --git a/PROD_UPSTREAM_CONFIG.json b/PROD_UPSTREAM_CONFIG.json
index 1b3967c..24f3a86 100644
--- a/PROD_UPSTREAM_CONFIG.json
+++ b/PROD_UPSTREAM_CONFIG.json
@@ -5,7 +5,7 @@
"urls": [
[
"steemd",
- "wss://steemd.steemit.com"
+ "wss://steemd-int.steemit.com"
]
],
"ttls": [
I don't think we should have a diff
on devportal, though. So I consider this issue blocked.
@john-g-g how does this look to you?
We need to document
jussi
. Both setting up a node that responds tojussi
requests and some information on which api namespaces sit in front of the various related upstreams.AC