Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -16,6 +16,7 @@ import (
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"runtime/debug"
|
||||
"strings"
|
||||
|
||||
@@ -906,6 +907,12 @@ func main() {
|
||||
log.Println("⚠️ .env / mail.env bulunamadı")
|
||||
}
|
||||
|
||||
// Local dev convenience: on Windows we generally want to override .env with .env.local
|
||||
// (e.g. SSH-tunnel PostgreSQL on 127.0.0.1:15432).
|
||||
if runtime.GOOS == "windows" {
|
||||
_ = godotenv.Overload(".env.local")
|
||||
}
|
||||
|
||||
jwtSecret := os.Getenv("JWT_SECRET")
|
||||
if len(jwtSecret) < 10 {
|
||||
log.Fatal("❌ JWT_SECRET tanımlı değil veya çok kısa (min 10 karakter)")
|
||||
|
||||
Reference in New Issue
Block a user