Files
goimgApi/.env.example
Beyhan Oğur e6f3268c28 first commit
2026-04-26 21:48:15 +03:00

40 lines
2.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ─── 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