From 78216b675ad0541e86a2399dc3e274761415a477 Mon Sep 17 00:00:00 2001 From: sleepy ramen Date: Tue, 13 Feb 2024 22:40:45 +0100 Subject: [PATCH] fix: update doc and setting example to add port value (#127) Added to the Setting.example.toml file and the doc the change for the database port. It is now configurable and should be added in the config file. --- config/Settings.example.toml | 1 + docs/04-server.md | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config/Settings.example.toml b/config/Settings.example.toml index 72582b0..2b46e51 100644 --- a/config/Settings.example.toml +++ b/config/Settings.example.toml @@ -6,6 +6,7 @@ host = "localhost" user = "postgres" password = "wow" dbname = "blockchain" +port = 5432 # Optional field to configure a timeout if database connection # fails. connection_timeout = 20 diff --git a/docs/04-server.md b/docs/04-server.md index 9c50537..ea95f5f 100644 --- a/docs/04-server.md +++ b/docs/04-server.md @@ -16,7 +16,9 @@ host = "localhost" user = "postgres" password = "wow" dbname = "blockchain" - +port = 5432 +connection_timeout = 20 # Optional timeout value +create_index = true [server] serve_at = "0.0.0.0"