mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2025-01-30 22:34:53 +01:00
Compare commits
No commits in common. "0cb0a49565f644bd1ac75b4f626635020666e00a" and "1c2a94910255d500745696650b4d1cdead6a2e9b" have entirely different histories.
0cb0a49565
...
1c2a949102
@ -7,7 +7,6 @@
|
|||||||
(fp /misc/metrics-exporters.nix)
|
(fp /misc/metrics-exporters.nix)
|
||||||
./disks.nix
|
./disks.nix
|
||||||
|
|
||||||
./services/nginx.nix
|
|
||||||
./services/pvvvvvv
|
./services/pvvvvvv
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
{ config, lib, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
services.nginx.enable = true;
|
|
||||||
}
|
|
@ -1,47 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.services.libeufin.bank;
|
|
||||||
tcfg = config.services.taler;
|
|
||||||
inherit (tcfg.settings.taler) CURRENCY;
|
|
||||||
in {
|
|
||||||
services.libeufin.bank = {
|
|
||||||
enable = true;
|
|
||||||
debug = true;
|
|
||||||
createLocalDatabase = true;
|
|
||||||
initialAccounts = [
|
|
||||||
{ username = "exchange";
|
|
||||||
password = "exchange";
|
|
||||||
name = "Exchange";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
settings = {
|
|
||||||
libeufin-bank = {
|
|
||||||
WIRE_TYPE = "x-taler-bank";
|
|
||||||
X_TALER_BANK_PAYTO_HOSTNAME = "bank.kvernberg.pvv.ntnu.no";
|
|
||||||
BASE_URL = "bank.kvernberg.pvv.ntnu.no";
|
|
||||||
|
|
||||||
ALLOW_REGISTRATION = "yes";
|
|
||||||
|
|
||||||
REGISTRATION_BONUS_ENABLED = "yes";
|
|
||||||
REGISTRATION_BONUS = "${CURRENCY}:500";
|
|
||||||
|
|
||||||
DEFAULT_DEBT_LIMIT = "${CURRENCY}:0";
|
|
||||||
|
|
||||||
ALLOW_CONVERSION = "no";
|
|
||||||
ALLOW_EDIT_CASHOUT_PAYTO_URI = "yes";
|
|
||||||
|
|
||||||
SUGGESTED_WITHDRAWAL_EXCHANGE = "https://exchange.kvernberg.pvv.ntnu.no/";
|
|
||||||
|
|
||||||
inherit CURRENCY;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.nginx.virtualHosts."bank.kvernberg.pvv.ntnu.no" = {
|
|
||||||
enableACME = true;
|
|
||||||
forceSSL = true;
|
|
||||||
kTLS = true;
|
|
||||||
locations."/".proxyPass = "http://127.0.0.1:8082";
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./exchange.nix
|
./exchange.nix
|
||||||
./bank.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
services.taler = {
|
services.taler = {
|
||||||
|
@ -11,9 +11,10 @@ in {
|
|||||||
services.taler.exchange = {
|
services.taler.exchange = {
|
||||||
enable = true;
|
enable = true;
|
||||||
debug = true;
|
debug = true;
|
||||||
|
openFirewall = true;
|
||||||
denominationConfig = ''
|
denominationConfig = ''
|
||||||
## Old denomination names cannot be used again
|
## Old denomination names cannot be used again
|
||||||
# [COIN-${CURRENCY}-k1-1-0]
|
#[COIN-${CURRENCY}-k1-1-0]
|
||||||
|
|
||||||
## NOK Denominations
|
## NOK Denominations
|
||||||
[coin-${CURRENCY}-nok-1-0]
|
[coin-${CURRENCY}-nok-1-0]
|
||||||
@ -146,24 +147,6 @@ in {
|
|||||||
exchange-offline = {
|
exchange-offline = {
|
||||||
MASTER_PRIV_FILE = config.sops.secrets.exchange-offline-master.path;
|
MASTER_PRIV_FILE = config.sops.secrets.exchange-offline-master.path;
|
||||||
};
|
};
|
||||||
exchange-account-test = {
|
|
||||||
PAYTO_URI = "payto://x-taler-bank/bank.kvernberg.pvv.ntnu.no/exchange?receiver-name=Exchange";
|
|
||||||
ENABLE_DEBIT = "YES";
|
|
||||||
ENABLE_CREDIT = "YES";
|
|
||||||
};
|
|
||||||
exchange-accountcredentials-test = {
|
|
||||||
WIRE_GATEWAY_URL = "http://bank.kvernberg.pvv.ntnu.no/accounts/exchange/taler-wire-gateway/";
|
|
||||||
WIRE_GATEWAY_AUTH_METHOD = "BASIC";
|
|
||||||
USERNAME = "exchange";
|
|
||||||
PASSWORD = "exchange";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."exchange.kvernberg.pvv.ntnu.no" = {
|
|
||||||
enableACME = true;
|
|
||||||
forceSSL = true;
|
|
||||||
kTLS = true;
|
|
||||||
locations."/".proxyPass = "http://127.0.0.1:8081";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user