xmr-remote-nodes/.env.example
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

26 lines
630 B
Text

# General Config
# ##############
LOG_LEVEL=INFO # can be DEBUG, INFO, WARN, ERROR
# Prober config
# #############
SERVER_ENDPOINT="http://127.0.0.1:18901"
API_KEY=
ACCEPT_TOR=true
TOR_SOCKS="127.0.0.1:9050"
# Server Config
# #############
SECRET_KEY="" # must be 32 char length, use `openssl rand -base64 32` to generate random secret
# Fiber Config
APP_PREFORK=true
APP_HOST="127.0.0.1"
APP_PORT=18090
APP_PROXY_HEADER="X-Real-Ip" # CF-Connecting-IP
APP_ALLOW_ORIGIN="http://localhost:5173,http://127.0.0.1:5173,https://ditatompel.com"
# DB settings:
DB_HOST=127.0.0.1
DB_PORT=3306
DB_USER=root
DB_PASSWORD=
DB_NAME=xmr_nodes