mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 13:46:59 +01:00
Add Monero node
This commit is contained in:
parent
5f27d353ba
commit
1268fdf509
3 changed files with 31 additions and 1 deletions
8
dns.tf
8
dns.tf
|
|
@ -39,6 +39,14 @@ resource "hetznerdns_record" "jellyfin_a" {
|
||||||
ttl = 600
|
ttl = 600
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resource "hetznerdns_record" "monero_a" {
|
||||||
|
zone_id = data.hetznerdns_zone.banditlair_zone.id
|
||||||
|
name = "monero"
|
||||||
|
value = local.storage1_ip
|
||||||
|
type = "A"
|
||||||
|
ttl = 600
|
||||||
|
}
|
||||||
|
|
||||||
resource "hetznerdns_record" "anderia_a" {
|
resource "hetznerdns_record" "anderia_a" {
|
||||||
zone_id = data.hetznerdns_zone.banditlair_zone.id
|
zone_id = data.hetznerdns_zone.banditlair_zone.id
|
||||||
name = "anderia"
|
name = "anderia"
|
||||||
|
|
|
||||||
21
modules/monero.nix
Normal file
21
modules/monero.nix
Normal 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;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -8,7 +8,8 @@
|
||||||
../modules/nginx.nix
|
../modules/nginx.nix
|
||||||
../modules/jellyfin.nix
|
../modules/jellyfin.nix
|
||||||
../modules/stb.nix
|
../modules/stb.nix
|
||||||
|
../modules/monero.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
networking.firewall.allowedTCPPorts = [ 80 443 18080 ];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue