From f7dd311da419e73604b10c675be1ad363a2c1775 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Murat=20=C3=96ZDEM=C4=B0R?= Date: Wed, 9 Sep 2026 16:24:23 +0300 Subject: [PATCH] chore: add public repository safeguards --- .env.example | 30 ++++++++++++++++++++++++++++++ .gitignore | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 .env.example create mode 100644 .gitignore diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..66cd9f4 --- /dev/null +++ b/.env.example @@ -0,0 +1,30 @@ +# Kullanılacak ortam: test veya prod +IKLIM_API_ENV=test + +# Ortam adresleri +IKLIM_API_TEST_URL=https://api-test.iklim.co +IKLIM_API_PROD_URL=https://api.iklim.co + +# Login bilgileri +IKLIM_USERNAME=name@domain.com +IKLIM_PASSWORD=change-me +IKLIM_HMAC_SECRET=change-me + +# API yanıt dili: tr veya en +IKLIM_ACCEPT_LANGUAGE=tr + +# HTTP ve retry ayarları +IKLIM_TIMEOUT_SECONDS=30 +IKLIM_TOKEN_EXPIRY_SKEW_SECONDS=60 +IKLIM_MAX_RETRIES=3 +IKLIM_RETRY_BASE_SECONDS=2 + +# İlk başarılı tam webhook kaydından sonra otomatik true yapılır +IKLIM_WEBHOOK_INITIALIZED=false + +# Login/refresh sonrasında otomatik doldurulur +IKLIM_ACCESS_TOKEN= +IKLIM_REFRESH_TOKEN= +IKLIM_ACCESS_TOKEN_EXPIRES_AT= +IKLIM_REFRESH_TOKEN_EXPIRES_AT= +IKLIM_TOKENS_UPDATED_AT= diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..71c6176 --- /dev/null +++ b/.gitignore @@ -0,0 +1,38 @@ +# Secrets and local runtime configuration +.env +.env.* +!.env.example +webhook.json +nowcast-geo-alarm-filter.json + +# Runtime data and debug output +nowcast-geo-alarm-registrations.csv +logs/ +*.log + +# Python caches and virtual environments +__pycache__/ +*.py[cod] +*$py.class +.venv/ +venv/ +env/ + +# Test and coverage output +.pytest_cache/ +.mypy_cache/ +.ruff_cache/ +.coverage +.coverage.* +htmlcov/ + +# Build and packaging output +build/ +dist/ +*.egg-info/ + +# Editor and operating-system files +.idea/ +.vscode/ +.DS_Store +Thumbs.db