diff --git a/PORT-ALLOCATION b/PORT-ALLOCATION index 3d6e218..4486a1e 100644 --- a/PORT-ALLOCATION +++ b/PORT-ALLOCATION @@ -45,6 +45,9 @@ Public ports: Transmission: 51413 Wireguard: 51820 (HA) Gitea SSH: 2442 - (HA) Mumble: 64738 + Mumble: 64738 + Monerod: + p2p: 18080 + RPC: 18081 (HA): Proxied by HAProxy diff --git a/config/monerod/APKBUILD b/config/monerod/APKBUILD new file mode 100644 index 0000000..e452ac8 --- /dev/null +++ b/config/monerod/APKBUILD @@ -0,0 +1,18 @@ +# Contributor: Alex Denes +# Maintainer: Alex Denes +_svcname=monerod + +. ../APKBUILD-config.common + +pkgver=2021.03.17 +pkgrel=0 +source=" + redxen.conf +" + +package() { + package_copy_configs + mkdir -p "$pkgdir"/var/lib/monerod +} + +sha512sums="ecbf9107c2fc19ad5f337aab0e3db0b3aca7249af9b6ca4b243bf41d13a16f9baff35d75bc7f35b83d71c045765de3fab69a3340951ff9e6b7b8b3f791c4bf09 redxen.conf" diff --git a/config/monerod/redxen.conf b/config/monerod/redxen.conf new file mode 100644 index 0000000..e410e80 --- /dev/null +++ b/config/monerod/redxen.conf @@ -0,0 +1,15 @@ +db-sync-mode=safe +enforce-dns-checkpointing=1 + +no-igd=1 + +# RPC +rpc-bind-ip=0.0.0.0 +rpc-bind-port=18081 +confirm-external-bind=1 +restricted-rpc=1 +public-node=1 + +# P2P +p2p-bind-ip=0.0.0.0 +p2p-bind-port=18080 diff --git a/openrc/monerod/APKBUILD b/openrc/monerod/APKBUILD new file mode 100644 index 0000000..ba916b1 --- /dev/null +++ b/openrc/monerod/APKBUILD @@ -0,0 +1,13 @@ +# Contributor: Alex Denes +# Maintainer: Alex Denes +_svcname=monerod +_grpname=blockchain + +. ../APKBUILD-openrc.common + +pkgver=2021.03.17 +pkgrel=1 +depends="openrc redxen-config-$_svcname monero" + +sha512sums="e255bb9f26345b2313914d23d099cf580845af563517a1cb75ac7df2989d959e603452a674f61d42686947ae15a47402dab10f139698b2271dcc3e289e19f3c6 runfile +31e7973b8a580d04d4a0fa40357914fecbc46b42799620480a2d158bdc38159c13a54a82549972a56de8fd163a61e057ea65bc3899857c44de705c87ff2181ce conffile" diff --git a/openrc/monerod/conffile b/openrc/monerod/conffile new file mode 100644 index 0000000..136bdcd --- /dev/null +++ b/openrc/monerod/conffile @@ -0,0 +1 @@ +MONEROD_CONF="/etc/monerod/redxen.conf" diff --git a/openrc/monerod/runfile b/openrc/monerod/runfile new file mode 100644 index 0000000..c4a359a --- /dev/null +++ b/openrc/monerod/runfile @@ -0,0 +1,20 @@ +#!/sbin/openrc-run + +: ${MONEROD_CONF:=/etc/monero/daemon.conf} +: ${MONEROD_DATA:=/var/lib/monerod} + +name=monerod +command="/usr/bin/monerod" +pidfile="/run/monerod.pid" +command_args="--config-file ${MONEROD_CONF} --detach --pidfile $pidfile --non-interactive --no-zmq --no-igd --data-dir ${MONEROD_DATA} --enforce-dns-checkpointing ${MONEROD_EXTRA_ARGS}" + +depend() { + need net dns + after firewall +} + +start_pre() { + checkpath -d -m755 "${MONEROD_DATA}" + checkpath -f -m644 "${MONEROD_CONF}" +} +