ripple-rest: remove
marked as broken for > 1 yr, development is frozen and author recommends moving to https://github.com/ripple/ripple-lib
This commit is contained in:
parent
c39fec56a8
commit
79ac09ea06
5 changed files with 2 additions and 142 deletions
|
@ -214,7 +214,7 @@
|
|||
plex = 193;
|
||||
grafana = 196;
|
||||
skydns = 197;
|
||||
ripple-rest = 198;
|
||||
# ripple-rest = 198; # unused, removed 2017-08-12
|
||||
nix-serve = 199;
|
||||
tvheadend = 200;
|
||||
uwsgi = 201;
|
||||
|
@ -489,7 +489,7 @@
|
|||
sabnzbd = 194;
|
||||
#grafana = 196; #unused
|
||||
#skydns = 197; #unused
|
||||
#ripple-rest = 198; #unused
|
||||
# ripple-rest = 198; # unused, removed 2017-08-12
|
||||
#nix-serve = 199; #unused
|
||||
#tvheadend = 200; #unused
|
||||
uwsgi = 201;
|
||||
|
|
|
@ -323,7 +323,6 @@
|
|||
./services/misc/radarr.nix
|
||||
./services/misc/redmine.nix
|
||||
./services/misc/rippled.nix
|
||||
./services/misc/ripple-rest.nix
|
||||
./services/misc/ripple-data-api.nix
|
||||
./services/misc/rogue.nix
|
||||
./services/misc/siproxd.nix
|
||||
|
|
|
@ -1,110 +0,0 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.services.rippleRest;
|
||||
|
||||
configFile = pkgs.writeText "ripple-rest-config.json" (builtins.toJSON {
|
||||
config_version = "2.0.3";
|
||||
debug = cfg.debug;
|
||||
port = cfg.port;
|
||||
host = cfg.host;
|
||||
ssl_enabled = cfg.ssl.enable;
|
||||
ssl = {
|
||||
key_path = cfg.ssl.keyPath;
|
||||
cert_path = cfg.ssl.certPath;
|
||||
reject_unathorized = cfg.ssl.rejectUnathorized;
|
||||
};
|
||||
db_path = cfg.dbPath;
|
||||
max_transaction_fee = cfg.maxTransactionFee;
|
||||
rippled_servers = cfg.rippleds;
|
||||
});
|
||||
|
||||
in {
|
||||
options.services.rippleRest = {
|
||||
enable = mkEnableOption "ripple rest";
|
||||
|
||||
debug = mkEnableOption "debug for ripple-rest";
|
||||
|
||||
host = mkOption {
|
||||
description = "Ripple rest host.";
|
||||
default = "localhost";
|
||||
type = types.str;
|
||||
};
|
||||
|
||||
port = mkOption {
|
||||
description = "Ripple rest port.";
|
||||
default = 5990;
|
||||
type = types.int;
|
||||
};
|
||||
|
||||
ssl = {
|
||||
enable = mkEnableOption "ssl";
|
||||
|
||||
keyPath = mkOption {
|
||||
description = "Path to the ripple rest key file.";
|
||||
default = null;
|
||||
type = types.nullOr types.path;
|
||||
};
|
||||
|
||||
|
||||
certPath = mkOption {
|
||||
description = "Path to the ripple rest cert file.";
|
||||
default = null;
|
||||
type = types.nullOr types.path;
|
||||
};
|
||||
|
||||
rejectUnathorized = mkOption {
|
||||
description = "Whether to reject unatohroized.";
|
||||
default = true;
|
||||
type = types.bool;
|
||||
};
|
||||
};
|
||||
|
||||
dbPath = mkOption {
|
||||
description = "Ripple rest database path.";
|
||||
default = "${cfg.dataDir}/ripple-rest.db";
|
||||
type = types.path;
|
||||
};
|
||||
|
||||
maxTransactionFee = mkOption {
|
||||
description = "Ripple rest max transaction fee.";
|
||||
default = 1000000;
|
||||
type = types.int;
|
||||
};
|
||||
|
||||
rippleds = mkOption {
|
||||
description = "List of rippled servers.";
|
||||
default = [
|
||||
"wss://s1.ripple.com:443"
|
||||
];
|
||||
type = types.listOf types.str;
|
||||
};
|
||||
|
||||
dataDir = mkOption {
|
||||
description = "Ripple rest data directory.";
|
||||
default = "/var/lib/ripple-rest";
|
||||
type = types.path;
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf (cfg.enable) {
|
||||
systemd.services.ripple-rest = {
|
||||
wantedBy = [ "multi-user.target"];
|
||||
after = ["network.target" ];
|
||||
environment.NODE_PATH="${pkgs.ripple-rest}/lib/node_modules/ripple-rest/node_modules";
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.nodejs}/bin/node ${pkgs.ripple-rest}/lib/node_modules/ripple-rest/server/server.js --config ${configFile}";
|
||||
User = "ripple-rest";
|
||||
};
|
||||
};
|
||||
|
||||
users.extraUsers.postgres = {
|
||||
name = "ripple-rest";
|
||||
uid = config.ids.uids.ripple-rest;
|
||||
createHome = true;
|
||||
home = cfg.dataDir;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,27 +0,0 @@
|
|||
{ lib, fetchFromGitHub, nodePackages }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
np = nodePackages.override { generated = ./package.nix; self = np; };
|
||||
in nodePackages.buildNodePackage rec {
|
||||
name = "ripple-rest-${version}";
|
||||
version = "1.7.0-rc1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
repo = "ripple-rest";
|
||||
owner = "ripple";
|
||||
rev = version;
|
||||
sha256 = "19ixgrz40iawd927jan0g1ac8w56wxh2vy3n3sa3dn9cmjd4k2r3";
|
||||
};
|
||||
|
||||
deps = (filter (v: nixType v == "derivation") (attrValues np));
|
||||
|
||||
meta = {
|
||||
description = " RESTful API for submitting payments and monitoring accounts on the Ripple Network";
|
||||
homepage = https://github.com/ripple/ripple-rest;
|
||||
maintainers = with maintainers; [ offline ];
|
||||
license = [ licenses.mit ];
|
||||
broken = true;
|
||||
};
|
||||
}
|
|
@ -11496,8 +11496,6 @@ with pkgs;
|
|||
boost = boost159;
|
||||
};
|
||||
|
||||
#ripple-rest = callPackage ../servers/rippled/ripple-rest.nix { };
|
||||
|
||||
s6 = callPackage ../tools/system/s6 { };
|
||||
|
||||
s6-rc = callPackage ../tools/system/s6-rc { };
|
||||
|
|
Loading…
Reference in a new issue