From e26a49bb14ae1e7b1e0cc993b4bf3e96d3dfdf4a Mon Sep 17 00:00:00 2001 From: louis Date: Sat, 28 Oct 2023 21:30:57 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20Documentation=20and=20Defa?= =?UTF-8?q?ult=20Config=20File?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.yml.dist | 5 ++--- docs/configuration.md | 7 +++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/config.yml.dist b/config.yml.dist index ea3aa26a..78e9305d 100644 --- a/config.yml.dist +++ b/config.yml.dist @@ -5,9 +5,8 @@ log_level: "error" # log_format sets log format for logrus (default: json) log_format: "json" # configuration for the database -database: - type: "sqlite" # postgres, mysql, sqlite - dsn: "ticker.db" # postgres: "host=localhost port=5432 user=ticker dbname=ticker password=ticker sslmode=disable" +database_type: "sqlite" # postgres, mysql, sqlite +database_dsn: "ticker.db" # postgres: "host=localhost port=5432 user=ticker dbname=ticker password=ticker sslmode=disable" # secret used for JSON Web Tokens secret: "slorp-panfil-becall-dorp-hashab-incus-biter-lyra-pelage-sarraf-drunk" # telegram configuration diff --git a/docs/configuration.md b/docs/configuration.md index 0ee7a51b..4af12ec5 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -8,9 +8,8 @@ log_level: "error" # log_format sets log format for logrus (default: json) log_format: "json" # configuration for the database -database: - type: "sqlite" # postgres, mysql, sqlite - dsn: "ticker.db" # postgres: "host=localhost port=5432 user=ticker dbname=ticker password=ticker sslmode=disable" +database_type: "sqlite" # postgres, mysql, sqlite +database_dsn: "ticker.db" # postgres: "host=localhost port=5432 user=ticker dbname=ticker password=ticker sslmode=disable" # secret used for JSON Web Tokens secret: "slorp-panfil-becall-dorp-hashab-incus-biter-lyra-pelage-sarraf-drunk" # telegram configuration @@ -26,7 +25,7 @@ upload_url: "http://localhost:8080" !!! note We use [viper](https://github.com/spf13/viper). That means you can use any of the supported file formats. Env variables will overwrite existing config file values. Note that every env variable MUST be prefixed by: `TICKER_`. - E.g. `TICKER_DATABASE`. + E.g. `TICKER_LISTEN`. The following env vars can be used: