-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.env.sample
More file actions
79 lines (67 loc) · 2.86 KB
/
.env.sample
File metadata and controls
79 lines (67 loc) · 2.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
POSTGRES_SCHEMA="public"
DATABASE_URL="postgresql://johndoe:randompassword@localhost:5432/mydb?schema=${POSTGRES_SCHEMA}"
CHALLENGE_DB_URL="postgresql://johndoe:randompassword@localhost:5432/challenge?schema=${POSTGRES_SCHEMA}"
AUTH_SECRET="<your_auth_secret_here>"
VALID_ISSUERS='["https://testsachin.topcoder-dev.com/","https://test-sachin-rs256.auth0.com/","https://api.topcoder.com","https://api.topcoder-dev.com","https://topcoder-dev.auth0.com/","https://auth.topcoder-dev.com/"]'
# Gitea Configuration
GITEA_WEBHOOK_AUTH="your_webhook_secret_here"
GITEA_TOKEN="your_gitea_token_here"
GITEA_BASE_URL="https://git.topcoder-dev.com/api/v1"
# AI Review Workflows
DISPATCH_AI_REVIEW_WORKFLOWS=true|false|undefined
# Kafka Configuration
KAFKA_BROKERS=localhost:9092
KAFKA_CLIENT_ID=tc-review-api
KAFKA_GROUP_ID=tc-review-consumer-group
KAFKA_SSL_ENABLED=false
# SASL Configuration (optional - uncomment if needed)
# KAFKA_SASL_MECHANISM=plain
# KAFKA_SASL_USERNAME=
# KAFKA_SASL_PASSWORD=
# Consumer Configuration
KAFKA_SESSION_TIMEOUT=30000
KAFKA_HEARTBEAT_INTERVAL=3000
KAFKA_MAX_WAIT_TIME=5000
KAFKA_CONNECTION_TIMEOUT=10000
KAFKA_REQUEST_TIMEOUT=30000
# Retry Configuration
KAFKA_RETRY_ATTEMPTS=5
KAFKA_INITIAL_RETRY_TIME=100
KAFKA_MAX_RETRY_TIME=30000
# Dead Letter Queue Configuration
KAFKA_DLQ_ENABLED=true
KAFKA_DLQ_TOPIC_SUFFIX=.dlq
KAFKA_DLQ_MAX_RETRIES=3
# API configs
BUS_API_URL="https://api.topcoder-dev.com/v5/bus/events"
CHALLENGE_API_URL="https://api.topcoder-dev.com/v6/challenges/"
RESOURCE_API_URL="https://api.topcoder-dev.com/v6/"
V6_API_URL="https://api.topcoder-dev.com/v6"
MEMBER_API_URL="https://api.topcoder-dev.com/v6/members"
SUBMITTER_ROLE_ID="732339e7-8e30-49d7-9198-cccf9451e221"
# Required: bucket name to store artifacts
ARTIFACTS_S3_BUCKET="topcoder-dev-submission-artifacts"
# Required: DMZ bucket for newly uploaded submission files before AV scan
SUBMISSION_DMZ_S3_BUCKET="topcoder-dev-submissions-dmz"
# Required: clean bucket for downloadable submissions (non-DMZ)
SUBMISSION_CLEAN_S3_BUCKET="topcoder-dev-submission-clean"
SUBMISSION_QUARANTINE_S3_BUCKET="topcoder-dev-submission-quarantine"
# AWS region (required for AWS; defaults to us-east-1 if not set)
AWS_REGION="us-east-1"
# Force path-style addressing for some S3-compatible providers (e.g., MinIO)
S3_FORCE_PATH_STYLE=false
# M2m configs
M2M_AUTH_URL="https://auth0.topcoder-dev.com/oauth/token"
M2M_AUTH_CLIENT_ID="<your-m2m-client-id>"
M2M_AUTH_CLIENT_SECRET="<your-m2m-client-secret>"
M2M_AUTH_DOMAIN="topcoder-dev.auth0.com"
M2M_AUTH_AUDIENCE="https://m2m.topcoder-dev.com/"
M2M_AUTH_PROXY_SERVER_URL=
# Mock API configs
#Sendgrid email templates
SENDGRID_ACCEPT_REVIEW_APPLICATION="d-2de72880bd69499e9c16369398d34bb9"
SENDGRID_REJECT_REVIEW_APPLICATION="d-82ed74e778e84d8c9bc02eeda0f44b5e"
# For pulling payment details (used by platform-ui)
FINANCE_DB_URL=
#Prisma timeout
REVIEW_SERVICE_PRISMA_TIMEOUT=10000