Skip to content

Commit

Permalink
dogenet: 0.1.7
Browse files Browse the repository at this point in the history
Uses --reflector option to obtain public IP address from
https://reflector.dogecoin.org/me

This is more reliable (retries) and shows errors in the logs,
which can now be viewed in DPanel.
  • Loading branch information
raffecat committed Oct 29, 2024
1 parent 6381f61 commit ef6177e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dogenet/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"container": {
"build": {
"nixFile": "pup.nix",
"nixFileSha256": "9af531398be4a5a139625663c0349d7af7d1c0ba25cdd627c9bdff219a5f41d7"
"nixFileSha256": "1d0e4f47a954a6ffbf21ed59bf59173fb7f309e22b6c3bf2521cccab95d1148b"
},
"services": [
{
Expand Down
8 changes: 3 additions & 5 deletions dogenet/pup.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@

let
dogenet_upstream = pkgs.callPackage (pkgs.fetchurl {
url = "https://raw.githubusercontent.com/dogeorg/dogebox-nur-packages/0fe8f2bb6d1fb842f51145d87adb04d89e81046a/pkgs/dogenet/default.nix";
sha256 = "sha256-7AvXs1EUt66qiddSuVzVMEn0JZWmcObhRtEIEKcdQyE=";
url = "https://raw.githubusercontent.com/dogeorg/dogebox-nur-packages/c20d95a0695fdd0043e2e15d5f7967ed565e228d/pkgs/dogenet/default.nix";
sha256 = "sha256-hJ/74OtGf4EEj+JSTplgcSc1/jX4baxOI2QPeqOoaqI=";
}) {};

dogenet = pkgs.writeScriptBin "run.sh" ''
#!${pkgs.bash}/bin/bash
export KEY=`cat /storage/delegated.key`
IP=`${pkgs.curl}/bin/curl https://reflector.dogecoin.org/me | ${pkgs.jq}/bin/jq -r .ip`
${dogenet_upstream}/bin/dogenet --handler ''${DBX_PUP_IP}:42068 --web ''${DBX_PUP_IP}:8080 --public ''${IP}:42069 --dir /storage
KEY=`cat /storage/delegated.key` ${dogenet_upstream}/bin/dogenet --handler ''${DBX_PUP_IP}:42068 --web ''${DBX_PUP_IP}:8080 --dir /storage --reflector
'';
in
{
Expand Down

0 comments on commit ef6177e

Please sign in to comment.