Skip to content

Challenge api integration #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .env

This file was deleted.

68 changes: 61 additions & 7 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,21 +1,75 @@
# KAFKA_BROKERS=localhost:29092
# SCHEMA_REGISTRY_URL=http://localhost:8081
# KAFKA_CLIENT_ID=autopilot-service
# KAFKA_MAX_RETRY_TIME=30000
# KAFKA_INITIAL_RETRY_TIME=300
# KAFKA_RETRIES=5
# .env.example
# This file contains all the environment variables used by the application.
# Copy this file to .env and fill in the appropriate values.

# -------------------------------------
# App Configuration
# -------------------------------------
# The environment the application is running in (development, production, test)
NODE_ENV=development
# The port the application will run on
PORT=3000
# The level of logging to display (error, warn, info, debug, verbose)
LOG_LEVEL=info
# The directory to store log files
LOG_DIR=logs

# -------------------------------------
# Kafka Configuration
# -------------------------------------
# Comma-separated list of Kafka broker hosts
KAFKA_BROKERS=localhost:9092
# A unique identifier for this Kafka client instance
KAFKA_CLIENT_ID=autopilot-service
# The maximum time (in ms) to retry a failed Kafka operation
KAFKA_MAX_RETRY_TIME=30000
# The initial time (in ms) to wait before the first retry
KAFKA_INITIAL_RETRY_TIME=300
# The maximum number of retries for a failed Kafka operation
KAFKA_RETRIES=5

# -------------------------------------
# Schema Registry Configuration
SCHEMA_REGISTRY_URL=http://localhost:8081
# -------------------------------------
# The URL for the Confluent Schema Registry
SCHEMA_REGISTRY_URL=http://localhost:8081
# Optional username for Schema Registry basic authentication
SCHEMA_REGISTRY_USER=
# Optional password for Schema Registry basic authentication
SCHEMA_REGISTRY_PASSWORD=

# -------------------------------------
# Challenge API Configuration
# -------------------------------------
# The base URL for the Topcoder Challenge API v6
CHALLENGE_API_URL=https://api.topcoder-dev.com/v6
# Removed static M2M token - now using Auth0 service
# The number of retry attempts for failed Challenge API calls
CHALLENGE_API_RETRY_ATTEMPTS=3
# The initial delay (in ms) for the first retry attempt
CHALLENGE_API_RETRY_DELAY=1000

# -------------------------------------
# Auth0 Configuration
# -------------------------------------
# The Auth0 URL for token generation (full OAuth endpoint)
AUTH0_URL=<your-auth0-url>
# Client ID for M2M application
AUTH0_CLIENT_ID=<your-auth0-client-id>
# Client secret for M2M application
AUTH0_CLIENT_SECRET=<your-auth0-client-secret>
# The Auth0 domain
AUTH0_DOMAIN=<your-auth0-domain>
# The audience/API identifier for the Challenge API
AUTH0_AUDIENCE=<your-auth0-audience>
# Auth0 proxy server URL (optional)
AUTH0_PROXY_SEREVR_URL=

# -------------------------------------
# Sync Service Configuration
# -------------------------------------
# The cron schedule for the challenge synchronization service.
# Uses standard cron syntax. Defaults to every 5 minutes.
# Example: '0 */1 * * *' would run it every hour.
SYNC_CRON_SCHEDULE='*/5 * * * *'

122 changes: 0 additions & 122 deletions DEPLOY.md

This file was deleted.

Loading