first commit

This commit is contained in:
Beyhan Oğur
2026-04-26 21:48:15 +03:00
commit e6f3268c28
50 changed files with 4930 additions and 0 deletions

39
.env.example Normal file
View File

@@ -0,0 +1,39 @@
# ─── Veritabanı (MySQL) ──────────────────────────────────────────────────────
DB_HOST=localhost
DB_PORT=3306
DB_USER=go_imgapi
DB_PASSWORD=your_db_password_here
DB_NAME=go_imgapi
# ─── Redis ───────────────────────────────────────────────────────────────────
# URL formatı tercih edilir:
REDIS_URL=redis://default:your_redis_password@localhost:6379/0
# Alternatif olarak ayrı ayrı:
# REDIS_HOST=localhost
# REDIS_PORT=6379
# REDIS_PASSWORD=
# ─── JWT ─────────────────────────────────────────────────────────────────────
# Üretim için en az 64 karakter rastgele değer kullanın.
# Örnek üretim: openssl rand -hex 64
JWT_SECRET=change-me-to-a-long-random-string-at-least-64-chars
JWT_REFRESH_SECRET=change-me-to-a-different-long-random-string-for-refresh
# ─── Sunucu ──────────────────────────────────────────────────────────────────
PORT=8080
# ─── CORS Bootstrap Origins (opsiyonel, virgülle ayrılmış) ──────────────────
CORS_BOOTSTRAP_WHITELIST_ORIGINS=http://localhost:3000,http://localhost:5173
CORS_BOOTSTRAP_BLACKLIST_ORIGINS=
# ─── Rate Limit Bootstrap (opsiyonel) ────────────────────────────────────────
RL_BOOTSTRAP_LOGIN_MAX_REQUESTS=10
RL_BOOTSTRAP_LOGIN_WINDOW_SECONDS=60
RL_BOOTSTRAP_REGISTER_MAX_REQUESTS=5
RL_BOOTSTRAP_REGISTER_WINDOW_SECONDS=60
RL_BOOTSTRAP_API_MAX_REQUESTS=120
RL_BOOTSTRAP_API_WINDOW_SECONDS=60
# ─── Uygulama URL'si (opsiyonel, image_url üretiminde kullanılır) ────────────
APP_BASE_URL=http://localhost:8080