-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implement robust configuration management for To-Do application
- Loading branch information
Showing
10 changed files
with
562 additions
and
25 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
# Application Configuration | ||
APP_RUN_MODE=development | ||
|
||
# Database Configuration | ||
DATABASE_URL=postgres://username:password@localhost/todo_app | ||
DATABASE_MAX_CONNECTIONS=100 | ||
DATABASE_MIN_CONNECTIONS=5 | ||
DATABASE_CONNECT_TIMEOUT=10 | ||
DATABASE_IDLE_TIMEOUT=300 | ||
DATABASE_MAX_LIFETIME=1800 | ||
APP_DATABASE__URL=postgres://username:password@localhost/todo_app | ||
APP_DATABASE__MAX_CONNECTIONS=100 | ||
APP_DATABASE__MIN_CONNECTIONS=5 | ||
APP_DATABASE__CONNECT_TIMEOUT=10 | ||
APP_DATABASE__IDLE_TIMEOUT=300 | ||
APP_DATABASE__MAX_LIFETIME=1800 | ||
|
||
# Application Configuration | ||
RUN_MODE=development | ||
# Server Configuration | ||
APP_SERVER__HOST=127.0.0.1 | ||
APP_SERVER__PORT=8080 | ||
|
||
# Logging Configuration | ||
APP_LOGGING__LEVEL=info | ||
|
||
# Add any other environment variables your application might need |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
[database] | ||
url = "postgres://username:password@localhost/todo_app_dev" | ||
|
||
[logging] | ||
level = "debug" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
[database] | ||
url = "postgres://username:password@localhost/todo_app_test" | ||
|
||
[logging] | ||
level = "debug" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters