updated app.go

This commit is contained in:
2025-02-26 05:09:17 +01:00
parent eeab4c25cb
commit 3cadf06599
6 changed files with 374 additions and 208 deletions
+31 -15
View File
@@ -1,16 +1,32 @@
# pgx, postgresql, mysql
DRIVERNAME=pgx
# enable / disable migrations
MIGRATE=
# as example
DATASOURCE=postgresql://developer:secret@localhost:5432/db?sslmode=disable
# hex string format
ASYMMETRICKEY=
# in minutes
DURATION=
# SMTP for sending emails
SMTP_HOST=localhost
SMTP_PORT=1025
SMTP_USER=noreply@example.com
SMTP_PASS=123456
ENV_DIRECTORY=
ENV_MODE=
LOG_LEVEL=
APP_NAME=
APP_VERSION=
TIMEZONE=
PASETO_ASYMMETRIC_KEY=
PASETO_DURATION=
SMTP_HOST=
SMTP_PORT=
SMTP_USER=
SMTP_PASS=
DATABASE_DRIVER_NAME=
DATABASE_DATA_SOURCE=
DATABASE_MIGRATE=
# if you want override the datasource key, you can use this format _OVERRIDE_KEY
# AUTH_DATA_SOURCE=something_data_source
# example i: OVERRIDE_AUTH_DATA_SOURCE will get the value something_data_source
# example ii:
# app := app.New(app.Config{
# Name: appName,
# Version: version,
# EnvDirectory: envDirectory,
# DatabaseDataSource: "OVERRIDE_AUTH_DATA_SOURCE",
# })