-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
2,036 additions
and
727 deletions.
There are no files selected for viewing
This file contains 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 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 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 |
---|---|---|
|
@@ -198,6 +198,7 @@ Copy the files from the `server` folder of the repository to a convenient place | |
Next, we have two options: | ||
1) We open a port on the Mina server to access GraphQL for the Monitor server side | ||
2) We forward the GraphQL port using SSH from the Mina server to the Monitor server | ||
3) We forward the Monitor Server port using SSH from the Mina server to your local computer | ||
|
||
**Option 1** | ||
Open the GraphQL port (flag `-insecure-rest-server` when starting Mina). | ||
|
@@ -252,4 +253,32 @@ In the client's configuration file, we write: | |
} | ||
``` | ||
|
||
Compile and run with any of the options listed above. | ||
Compile and run with any of the options listed above. | ||
|
||
**Option 3** | ||
Let you start the monitor server on a computer with an ip address of `1.1.1.1` and port` 8000`. | ||
The server config states | ||
|
||
```json | ||
{ | ||
"host": "1.1.1.1:8000" | ||
} | ||
``` | ||
|
||
We forward the Monitor Server with the command | ||
```shell | ||
ssh -L 8000: 1.1.1.1: 8000 [email protected] | ||
``` | ||
|
||
After executing this command, the server side of the monitor will work locally on port 8000. | ||
Now you can specify in the settings: | ||
|
||
For client: | ||
|
||
```json | ||
{ | ||
"hosts": { | ||
"node1": "localhost: 8000" | ||
} | ||
} | ||
``` |
This file contains 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 |
---|---|---|
|
@@ -192,6 +192,7 @@ npm run serve_x | |
Далее у нас два варианта: | ||
1) Мы открываем порт на сервере Mina для доступа к GraphQL для серверной части Монитора | ||
2) Мы пробрасываем порт GraphQL средствами SSH от сервера Mina на сервер Монитора | ||
3) Мы пробрасываем порт Monitor Server средствами SSH от сервера Mina на ваш локальный компьютер | ||
|
||
**Вариант 1** | ||
Открываем порт GraphQL (флаг `-insecure-rest-server` при запуске Mina). | ||
|
@@ -238,4 +239,31 @@ node monitor.mjs | |
} | ||
``` | ||
|
||
Компилируем и запускаем любым из вариантов. | ||
Компилируем и запускаем любым из вариантов. | ||
|
||
**Вариант 3** | ||
Пусть вы запустили сервер монитора на компьютере с ip адресом `1.1.1.1` и портом `8000`. | ||
В конфигурации сервера указано | ||
|
||
```json | ||
{ | ||
"host": "1.1.1.1:8000" | ||
} | ||
``` | ||
|
||
Пробрасываем Monitor Server командой | ||
```shell | ||
ssh -L 8000:1.1.1.1:8000 [email protected] | ||
``` | ||
После выполнения этой команды у вас локально на порту 8000 будет работать серверная часть монитора. | ||
Теперь вы можете указать в настройках: | ||
|
||
Для Клиента: | ||
|
||
```json | ||
{ | ||
"hosts": { | ||
"node1": "localhost:8000" | ||
} | ||
} | ||
``` |
This file contains 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 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 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.