self-hosting/modules/monero.nix
Paul-Henri Froidmont 1268fdf509
Add Monero node
2021-12-09 09:28:28 +01:00

21 lines
367 B
Nix

{ 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;
'';
};
};
}