Skip to content

Commit a527cb1

Browse files
jwembotditatompel
andcommitted
Update configs to match with new server #11
Co-authored-by: Christian Ditaputratama <ditatompel@gmail.com>
1 parent b0e5948 commit a527cb1

File tree

4 files changed

+31
-8
lines changed

4 files changed

+31
-8
lines changed

crontab

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,24 @@
1+
# Edit this file to introduce tasks to be run by cron.
2+
#
3+
# Each task to run has to be defined through a single line
4+
# indicating with different fields when the task will be run
5+
# and what command to run for the task
6+
#
7+
# To define the time you can provide concrete values for
8+
# minute (m), hour (h), day of month (dom), month (mon),
9+
# and day of week (dow) or use '*' in these fields (for 'any').
10+
#
11+
# Notice that tasks will be started based on the cron's system
12+
# daemon's notion of time and timezones.
13+
#
14+
# Output of the crontab jobs (including errors) is sent through
15+
# email to the user the crontab file belongs to (unless redirected).
16+
#
17+
# For example, you can run a backup of all your user accounts
18+
# at 5 a.m every week with:
19+
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
20+
#
21+
# For more information see the manual pages of crontab(5) and cron(8)
22+
#
23+
# m h dom mon dow command
124
0 10 * * * /usr/bin/bash /opt/monero/.local/src/srv-xmr-nodes/utils.sh >/dev/null 2>&1

etc/monero/stagenet.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# /etc/monero/stagenet.conf
2-
#
2+
#
33
# Configuration file for monerod. For all available options see the MoneroDocs:
44
# https://monerodocs.org/interacting/monerod-reference/
55

66
# Data directory (blockchain db and indices)
7-
data-dir=/mnt/hdd2/monero/stagenet/.bitmonero
7+
data-dir=/opt/monero/DATA/stagenet/.bitmonero
88

99
# Optional prunning
1010
# prune-blockchain=1 # Pruning saves 2/3 of disk space w/o degrading functionality but contributes less to the network
@@ -19,7 +19,7 @@ enable-dns-blocklist=1 # Block known malicious nodes
1919
ban-list=/etc/monero/ban_list.txt
2020

2121
# Log file
22-
log-file=/mnt/hdd2/monero/stagenet/.bitmonero/bitmonero.log
22+
log-file=/opt/monero/DATA/stagenet/.bitmonero/bitmonero.log
2323
log-level=0 # Minimal logs, WILL NOT log peers or wallets connecting
2424
max-log-file-size=2147483648 # Set to 2GB to mitigate log trimming by monerod; configure logrotate instead
2525

etc/monero/testnet.conf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# /etc/monero-stagenet.conf
2-
#
1+
# /etc/monero/testnet.conf
2+
#
33
# Configuration file for monerod. For all available options see the MoneroDocs:
44
# https://monerodocs.org/interacting/monerod-reference/
55

66
# Data directory (blockchain db and indices)
7-
data-dir=/mnt/hdd2/monero/testnet/.bitmonero
7+
data-dir=/opt/monero/DATA/testnet/.bitmonero
88

99
# Optional prunning
1010
# prune-blockchain=1 # Pruning saves 2/3 of disk space w/o degrading functionality but contributes less to the network
@@ -19,7 +19,7 @@ enable-dns-blocklist=1 # Block known malicious nodes
1919
ban-list=/etc/monero/ban_list.txt
2020

2121
# Log file
22-
log-file=/mnt/hdd2/monero/testnet/.bitmonero/bitmonero.log
22+
log-file=/opt/monero/DATA/testnet/.bitmonero/bitmonero.log
2323
log-level=0 # Minimal logs, WILL NOT log peers or wallets connecting
2424
max-log-file-size=2147483648 # Set to 2GB to mitigate log trimming by monerod; configure logrotate instead
2525

utils.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ sync() {
4040
/opt/monero/.local/bin/monerod --version > "${SCRIPT_DIR}/versions/monerod"
4141

4242
echo "Syncing nginx configs..."
43-
cp /etc/nginx/conf.d/*.xmr.ditatompel.com.conf \
43+
cp /usr/lib/nginx/sites/*.xmr.ditatompel.com.conf \
4444
"${SCRIPT_DIR}/etc/nginx/conf.d" --update
4545

4646
# Crontab

0 commit comments

Comments
 (0)