feat: .env.example

This commit is contained in:
sittichok Ouamsiri
2026-06-15 21:45:29 +07:00
parent bea934fc14
commit 9b550f4be2
4 changed files with 42 additions and 6 deletions
+5 -3
View File
@@ -12,9 +12,10 @@ type Config struct {
Store string
DatabaseURL string
RedisAddr string
RedisPassword string
RedisDB int
RedisAddr string
RedisPassword string
RedisDB int
RedisKeyPrefix string
// PublicURL is the externally reachable base (used to build OAuth callback
// URLs). PostLoginRedirect is where users land after a successful login.
@@ -76,6 +77,7 @@ func Load() Config {
RedisAddr: env("REDIS_ADDR", "localhost:6379"),
RedisPassword: env("REDIS_PASSWORD", ""),
RedisDB: envInt("REDIS_DB", 0),
RedisKeyPrefix: env("REDIS_KEY_PREFIX", ""),
PublicURL: env("PUBLIC_URL", "http://localhost:8080"),
PostLoginRedirect: env("POST_LOGIN_REDIRECT", "/dashboard"),
FrontendDist: env("FRONTEND_DIST", "./web"),