Add Monero node

This commit is contained in:
Paul-Henri Froidmont 2021-12-09 09:28:28 +01:00
parent 5f27d353ba
commit 1268fdf509
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
3 changed files with 31 additions and 1 deletions

21
modules/monero.nix Normal file
View file

@ -0,0 +1,21 @@
{ config, lib, pkgs, ... }:
{
services.monero = {
enable = true;
rpc.restricted = true;
};
services.nginx.virtualHosts."monero.${config.networking.domain}" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://127.0.0.1:18081";
extraConfig = ''
proxy_http_version 1.1;
'';
};
};
}