-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.example
More file actions
112 lines (102 loc) · 5.4 KB
/
Copy path.env.example
File metadata and controls
112 lines (102 loc) · 5.4 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# Database URL variants:
# - Local bare-metal (default): postgresql://johndoe:randompassword@localhost:5433/mydb?schema=${POSTGRES_SCHEMA}
# - Inside docker-compose: postgresql://johndoe:randompassword@mm-postgres:5432/mydb?schema=${POSTGRES_SCHEMA}
POSTGRES_SCHEMA="marathon_match"
DATABASE_URL="postgresql://johndoe:randompassword@localhost:5433/mydb?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/","https://topcoder.auth0.com/","https://auth.topcoder.com/"]'
AUTHORIZATION_SESSION_VALIDATION_ENABLED=true
# AUTHORIZATION_VALIDATION_URL defaults to <Topcoder API issuer>/v6/authorizations/1 for Topcoder-issued user tokens.
# AUTHORIZATION_VALIDATION_URL=https://api.topcoder-dev.com/v6/authorizations/1
AUTHORIZATION_VALIDATION_TIMEOUT_MS=3000
PORT=3013
# M2M configs
AUTH0_URL="https://auth0.topcoder-dev.com/oauth/token"
AUTH0_CLIENT_ID="<your-m2m-client-id>"
AUTH0_CLIENT_SECRET="<your-m2m-client-secret>"
AUTH0_DOMAIN="topcoder-dev.auth0.com"
AUTH0_AUDIENCE="https://m2m.topcoder-dev.com/"
AUTH0_PROXY_SERVER_URL=
MM_SERVICE_PRISMA_TIMEOUT=10000
# Default marathon match config values surfaced to the UI
# DEFAULT_REVIEW_SCORECARD_ID: Default review scorecard UUID used to pre-fill new configs.
DEFAULT_REVIEW_SCORECARD_ID="f6f937cb-3b71-43fd-8ecf-2f0d76db44db"
# DEFAULT_TEST_TIMEOUT_MS: Default ECS runner test timeout in milliseconds. Default: 90000
DEFAULT_TEST_TIMEOUT_MS=90000
# DEFAULT_COMPILE_TIMEOUT_MS: Default ECS runner compile timeout in milliseconds. Default: 120000
DEFAULT_COMPILE_TIMEOUT_MS=120000
# DEFAULT_SYSTEM_TEST_TIMEOUT_MS: Default total SYSTEM scoring timeout in milliseconds. Default: 86400000
DEFAULT_SYSTEM_TEST_TIMEOUT_MS=86400000
# DEFAULT_TASK_DEFINITION_NAME: Default ECS task definition family shown in the scorer UI.
DEFAULT_TASK_DEFINITION_NAME="mm-submission-runner"
# DEFAULT_TASK_DEFINITION_VERSION: Default ECS task definition revision shown in the scorer UI.
DEFAULT_TASK_DEFINITION_VERSION="42"
# Java tester compilation settings
# COMPILE_TIMEOUT_MS: Max ms to wait for mvn. Default: 120000
COMPILE_TIMEOUT_MS=120000
# COMPILE_JAVA_MAX_HEAP_MB: Max JVM heap for compile worker mvn process (MB). Default: 384
COMPILE_JAVA_MAX_HEAP_MB=384
# COMPILE_MAVEN_OPTS: Optional compile-worker-specific MAVEN_OPTS.
# If unset, service falls back to MAVEN_OPTS and appends -Xmx using COMPILE_JAVA_MAX_HEAP_MB.
# COMPILE_MAVEN_OPTS="-Xms128m -Xmx384m"
# JAVA_HOME: Path to Java 8+ JDK. Default: system
# JAVA_HOME=/path/to/jdk
# MVN_BINARY: Path to mvn binary. Default: mvn
MVN_BINARY=mvn
# BOILERPLATE_DIR: Absolute path to boilerplate Maven project.
# Default: <app_root>/ecs-runner/boilerplate
# BOILERPLATE_DIR=/abs/path/to/marathon-match-api-v6/ecs-runner/boilerplate
# COMPILATION_TMP_DIR: Writable temp root for compilation workspaces.
# Recommended for read-only containers: /dev/shm (memory-backed tmpfs)
# COMPILATION_TMP_DIR=/dev/shm
# PG_BOSS_COMPILE_TEAM_SIZE: Parallel compile workers. Default: 1
PG_BOSS_COMPILE_TEAM_SIZE=1
# PG_BOSS_COMPILE_TEAM_CONCURRENCY: Per-worker compile concurrency. Default: 1
PG_BOSS_COMPILE_TEAM_CONCURRENCY=1
# Kafka configuration
KAFKA_URL=localhost:9093 # use mm-kafka:29092 inside docker-compose
# KAFKA_BROKERS=localhost:9093 # alternative key (review-api compatibility)
KAFKA_CLIENT_ID=tc-marathon-match-api
KAFKA_GROUP_ID=tc-marathon-match-consumer-group
# KAFKA_MAXBYTES=2097152
# KAFKA_MAX_BYTES=2097152
# KAFKA_MIN_BYTES=1
# KAFKA_MAX_WAIT_TIME=5000
DISABLE_KAFKA=false
# Disable pg-boss queue/worker; compile runs inline on API instance when true.
DISABLE_PG_BOSS=false
# CHALLENGE_API_URL=https://api.topcoder-dev.com
# SUBMISSION_API_URL=https://api.topcoder-dev.com/v6
# RESOURCES_API_URL=https://api.topcoder-dev.com/v6/resources
# ECS configs
# ECS_CLUSTER: ARN or name of the Fargate cluster.
# Example: arn:aws:ecs:us-east-1:123456789012:cluster/tc-mm-cluster
ECS_CLUSTER="arn:aws:ecs:us-east-1:123456789012:cluster/tc-mm-cluster"
# ECS_SUBNETS: Comma-separated subnet IDs for task networking.
# Example: subnet-aaa,subnet-bbb
ECS_SUBNETS="subnet-aaa,subnet-bbb"
# ECS_SECURITY_GROUPS: Comma-separated security group IDs.
# Example: sg-xxxxxxxx
ECS_SECURITY_GROUPS="sg-xxxxxxxx"
# ECS_CONTAINER_NAME: Container name within the task definition to override env vars on.
# Example: tc-mm-runner
ECS_CONTAINER_NAME="tc-mm-runner"
# ECS_SCORER_MAX_CONCURRENT_TASKS: Max pending/running scorer ECS tasks before Kafka retry back-pressure.
# Default: 20
ECS_SCORER_MAX_CONCURRENT_TASKS=20
# AWS_REGION: AWS region where ECS cluster resides.
# Example: us-east-1
AWS_REGION="us-east-1"
# Scorer task runtime configuration passed by the NestJS service.
# MARATHON_MATCH_API_URL: Base URL for marathon-match-api-v6.
MARATHON_MATCH_API_URL="https://api.topcoder-dev.com"
# REVIEW_API_URL: Base URL for review-api-v6.
REVIEW_API_URL="https://api.topcoder-dev.com"
# REVIEW_TYPE_ID: Review type ID used by scorer/tester context.
REVIEW_TYPE_ID="2f4f4d8b-3ad0-4f6e-a222-9182f58c7b1d"
# DEBUG_LOG_ACCESS_TOKEN: When true, ECS runner logs token preview plus decoded JWT header/payload.
DEBUG_LOG_ACCESS_TOKEN=false
# DEBUG_LOG_FULL_ACCESS_TOKEN: When true (and DEBUG_LOG_ACCESS_TOKEN=true), logs full token value.
# DEBUG_LOG_FULL_ACCESS_TOKEN=false
# S3 placeholders
# ARTIFACTS_S3_BUCKET=