Set up public HTTPS endpoint for RSKj #337

已合併
raucao 將 10 次提交從 feature/rskj_public_endpoint 合併至 master 2021-12-02 17:26:01 +00:00
擁有者

Adds an nginx recipe with reverse proxy config and LE/certbot for rsk-testnet.kosmos.org.

refs #325

Adds an nginx recipe with reverse proxy config and LE/certbot for `rsk-testnet.kosmos.org`. refs #325
raucao 加入了 1 個提交 2021-08-09 17:04:06 +00:00
raucao 加入了 1 個提交 2021-08-09 17:13:17 +00:00
作者
擁有者

I added the WIP tag, because even though I think this should work just fine, converging the VM currently fails, claiming that the certbot resource method isn't available:

10.1.1.136   NoMethodError
10.1.1.136   -------------
10.1.1.136   undefined method `nginx_certbot_site' for cookbook: kosmos_rsk

However, the kosmos-nginx recipe is included as usual, and the cookbook is also added as a dependency in metadata.rb. I must have missed something, but at the moment I'm just blind as to what it could be.

I added the WIP tag, because even though I think this should work just fine, converging the VM currently fails, claiming that the certbot resource method isn't available: ```plain 10.1.1.136 NoMethodError 10.1.1.136 ------------- 10.1.1.136 undefined method `nginx_certbot_site' for cookbook: kosmos_rsk ``` However, the `kosmos-nginx` recipe is included as usual, and the cookbook is also added as a dependency in `metadata.rb`. I must have missed something, but at the moment I'm just blind as to what it could be.
raucao 請求了 greg 來審核 2021-08-14 08:19:35 +00:00
作者
擁有者

@greg Any chance you could have a quick look at this sometime soon?

@greg Any chance you could have a quick look at this sometime soon?
raucao 加入了 3 個提交 2021-11-28 16:06:09 +00:00
raucao 加入了 1 個提交 2021-11-28 16:08:52 +00:00
作者
擁有者

I have merged the RSK mainnet PR, and updated this branch for the new rsk-testnet-2 node. So you can now run it as is against that one to reproduce the bug.

I have merged the RSK mainnet PR, and updated this branch for the new `rsk-testnet-2` node. So you can now run it as is against that one to reproduce the bug.
raucao 加入了 1 個提交 2021-11-29 19:18:50 +00:00
作者
擁有者

Success! Our custom resource fix also works for this PR.

With jq and curl installed, you can get the block height from the testnet node like this e.g.:

res=$(curl -s https://rsk-testnet.kosmos.org -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' | jq -r '.result'); echo $((res))
Success! Our custom resource fix also works for this PR. With `jq` and `curl` installed, you can get the block height from the testnet node like this e.g.: ``` res=$(curl -s https://rsk-testnet.kosmos.org -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' | jq -r '.result'); echo $((res)) ```
raucao 加入了 1 個提交 2021-11-29 19:34:05 +00:00
作者
擁有者

... now also for mainnet:

res=$(curl -s https://rsk.kosmos.org -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' | jq -r '.result'); echo $((res))

/cc @bumi

... now also for mainnet: ``` res=$(curl -s https://rsk.kosmos.org -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' | jq -r '.result'); echo $((res)) ``` /cc @bumi
raucao 加入了 1 個提交 2021-11-29 19:55:20 +00:00
raucao 將標題從 WIP: Set up public HTTPS endpoint for RSKj 改為 Set up public HTTPS endpoint for RSKj 2021-11-29 19:55:29 +00:00
raucao 請求了 bumi 來審核 2021-11-29 19:55:39 +00:00
raucao 加入了
kredits-1
標籤 2021-11-30 18:29:39 +00:00
greg 加入了 1 個提交 2021-12-02 17:07:48 +00:00
greg 核可了這些變更 2021-12-02 17:17:54 +00:00
greg 留下了回應
擁有者

The port (4444) could be stored as in an attribute rather than just in the recipe, LGTM apart from that!

The port (4444) could be stored as in an attribute rather than just in the recipe, LGTM apart from that!
raucao merged commit a75237e0fb into master 2021-12-02 17:26:01 +00:00
raucao 刪除分支 feature/rskj_public_endpoint 2021-12-02 17:26:07 +00:00
登入 才能加入這對話。
No Reviewers
2 參與者
通知
截止日期
未設定截止日期。
先決條件

未設定先決條件。

參考: kosmos/chef#337
No description provided.