mirror of
https://github.com/ditatompel/xmr-remote-nodes.git
synced 2024-11-16 17:07:36 +00:00
46bc3dc2e8
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.
26 lines
630 B
Text
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
|