Source code of https://xmr.ditatompel.com, a website that helps you monitor your favourite Monero remote nodes.
Find a file
ditatompel 46bc3dc2e8
Using slog for logging level
The log level for the apps is using `log/slog` from Go standard library.
This commit change log format for fiber http logger to match with
the slog standard log format (date and time).

This commit also remove `APP_DEBUG` field from config struct.

TODO:
Use `slog` for default app output. Note that in this commit, the `slog`
output only implemented in `cron` "db migrate" and probe client.
2024-05-13 18:40:01 +07:00
cmd Using slog for logging level 2024-05-13 18:40:01 +07:00
frontend Change remote-nodes page meta tags 2024-05-11 21:39:26 +07:00
handler Avoid naming module using a domain name pattern 2024-05-08 21:35:04 +07:00
internal Using slog for logging level 2024-05-13 18:40:01 +07:00
tools feat: MySQL db migration 2024-05-12 04:19:40 +07:00
.air.toml Exclude ./tools dir from air watch dir 2024-05-11 20:54:28 +07:00
.editorconfig Copying my other project structure to this project 2024-05-04 00:11:56 +07:00
.env.example Using slog for logging level 2024-05-13 18:40:01 +07:00
.gitattributes Initial commit 2024-05-04 00:10:33 +07:00
.gitignore Adding GeoIP support 2024-05-05 02:20:54 +07:00
go.mod Avoid naming module using a domain name pattern 2024-05-08 21:35:04 +07:00
go.sum Adding GeoIP support 2024-05-05 02:20:54 +07:00
LICENSE Initial commit 2024-05-04 00:10:33 +07:00
main.go Avoid naming module using a domain name pattern 2024-05-08 21:35:04 +07:00
Makefile Adding deploy-prober example 2024-05-06 22:21:46 +07:00
README.md Using slog for logging level 2024-05-13 18:40:01 +07:00

XMR Remote Nodes

Source code of https://xmr.ditatompel.com.

Requirements

Installation

For initial server setup:

  1. Download GeoIP Database and place it to ./assets/geoip. (see ./internal/repo/geoip.go).
  2. Copy .env.example to .env and edit it to match with server environment.
  3. Build the binary with make build.
  4. Run the service with ./bin/xmr-nodes-static-linux-<YOUR_CPU_ARCH> serve.

To create admin user (for creating prober API key from Web-UI, execute ./bin/xmr-nodes-static-linux-<YOUR_CPU_ARCH> admin create).

Systemd example: ./tools/resources/init/xmr-nodes-server.service.

For initial prober setup:

  1. Create API key for prober
  2. Copy .env.example to .env and edit it to match with prober environment.
  3. Build the binary with make build.
  4. Run the service with ./bin/xmr-nodes-static-linux-<YOUR_CPU_ARCH> prober.

Systemd example: xmr-nodes-prober.service and xmr-nodes-prober.timer.