Repository navigation
Expand file tree
/
Copy path.env_sample
More file actions
153 lines (134 loc) · 5.89 KB
/
Copy path.env_sample
File metadata and controls
153 lines (134 loc) · 5.89 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# =============================================================================
# Codabench environment configuration (sample)
#
# Copy this file to .env and edit it: `cp .env_sample .env`
#
# .env is loaded into every container in docker-compose.yml (via env_file)
# and is also read by Django. Anything set here is visible to all services.
#
# The defaults below are for a local development setup.
# For a public server, at minimum:
# - change every password (Postgres, RabbitMQ, Flower, MinIO)
# - set DJANGO_SETTINGS_MODULE=settings.production and keep DEBUG=False
# - set DOMAIN_NAME and TLS_EMAIL (see the Caddy section)
#
# SECRET_KEY is generated automatically and appended to .env on first start.
# You can also define it yourself
#
# After editing .env, run `docker compose down && docker compose up -d` to apply the changes.
#
# Documentation: https://docs.codabench.org/latest/Developers_and_Administrators/Codabench-Installation/
# =============================================================================
# -----------------------------------------------------------------------------
# Database (Postgres) (change the password to something else)
#
# You can also further configure the postgres database with my-postgres.conf
# which is especially important if you want to make a production-ready instance
# -----------------------------------------------------------------------------
DB_HOST=db
DB_NAME=postgres
DB_USERNAME=postgres
DB_PASSWORD=postgres
DB_PORT=5432
# -----------------------------------------------------------------------------
# Django related settings
# -----------------------------------------------------------------------------
# Change settings.develop to settings.production for a production instance
DJANGO_SETTINGS_MODULE=settings.develop
ALLOWED_HOSTS=localhost,example.com
SUBMISSIONS_API_URL=http://django:8000/api
MAX_EXECUTION_TIME_LIMIT=600 # time limit for the default queue (in seconds)
# For local setup, to debug (DO NOT use DEBUG=True on public instances)
DEBUG=False
# Uncomment to enable email settings
#EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend
#EMAIL_HOST=smtp.sendgrid.net
#EMAIL_HOST_USER=user
#EMAIL_HOST_PASSWORD=pass
#EMAIL_PORT=587
#EMAIL_USE_TLS=True
#DEFAULT_FROM_EMAIL="Codabench <noreply@example.com>"
#SERVER_EMAIL=noreply@example.com
# Contact Email
CONTACT_EMAIL=info@codabench.org
## -----------------------------------------------------------------------------
## Limit for re-running submission
## This is used to limit users to rerun submissions
## on default queue when number of submissions are < RERUN_SUBMISSION_LIMIT
## -----------------------------------------------------------------------------
RERUN_SUBMISSION_LIMIT=30
## -----------------------------------------------------------------------------
## Enable or disable regular email sign-in an sign-up
## -----------------------------------------------------------------------------
ENABLE_SIGN_UP=True
ENABLE_SIGN_IN=True
## -----------------------------------------------------------------------------
## Enable or disable the External Competitions feature (button, page, API,
## and the daily fetch task). Off by default - intended for the main instance only.
## -----------------------------------------------------------------------------
EXTERNAL_COMPETITIONS_ENABLED=False
## -----------------------------------------------------------------------------
## Logging (Serialized outputs the logs in JSON format)
## -----------------------------------------------------------------------------
LOG_LEVEL=info
SERIALIZED=false
# -----------------------------------------------------------------------------
# Caddy related settings
# -----------------------------------------------------------------------------
# Local domain definition. If using HTTPS, comment this
DOMAIN_NAME=localhost:80
# SSL style domain definition
TLS_EMAIL=your@email.com
# DOMAIN_NAME=example.com
# -----------------------------------------------------------------------------
# Rabbit & Flower
# -----------------------------------------------------------------------------
RABBITMQ_HOST=rabbit
RABBITMQ_DEFAULT_USER=rabbit-username
RABBITMQ_DEFAULT_PASS=rabbit-password-you-should-change
RABBITMQ_MANAGEMENT_PORT=15672
RABBITMQ_PORT=5672
WORKER_CONNECTION_TIMEOUT=100000000 # milliseconds
FLOWER_PUBLIC_PORT=5555
FLOWER_BASIC_AUTH=root:password-you-should-change
# -----------------------------------------------------------------------------
# Storage
#
# Pick a storage from below and uncomment that section
# -----------------------------------------------------------------------------
# Minio local storage example
MINIO_ACCESS_KEY=testkey
MINIO_SECRET_KEY=testsecret
# NOTE! if you change this port, change it in AWS_S3_ENDPOINT_URL as well
MINIO_PORT=9000
# Minio local storage Django settings (mocks an S3 endpoint)
AWS_ACCESS_KEY_ID=testkey
AWS_SECRET_ACCESS_KEY=testsecret
AWS_STORAGE_BUCKET_NAME=public
AWS_STORAGE_PRIVATE_BUCKET_NAME=private
# NOTE! port 9000 here should match $MINIO_PORT
AWS_S3_ENDPOINT_URL=http://minio:9000/
AWS_QUERYSTRING_AUTH=False
# Optional URL rewriting in compute worker, format: FROM | TO
#WORKER_BUNDLE_URL_REWRITE=http://localhost:9000/|http://minio:9000/
# Optional custom domain for public bucket, e.g. if you have a CDN in front of your S3 storage
#AWS_S3_PUBLIC_CUSTOM_DOMAIN=<your-domain.com>
# # S3 storage example
# STORAGE_TYPE=s3
# AWS_ACCESS_KEY_ID=12312312312312312331223
# AWS_SECRET_ACCESS_KEY=123123123123123123123
# AWS_STORAGE_BUCKET_NAME=public
# AWS_STORAGE_PRIVATE_BUCKET_NAME=private
# AWS_S3_CALLING_FORMAT=boto.s3.connection.OrdinaryCallingFormat
# AWS_QUERYSTRING_AUTH=False
# # Azure
# STORAGE_TYPE=azure
# AZURE_ACCOUNT_NAME=storage-account-name
# AZURE_ACCOUNT_KEY=the-key==
# AZURE_CONTAINER=public
# BUNDLE_AZURE_CONTAINER=private
# # GCS
# STORAGE_TYPE=gcs
# GS_PUBLIC_BUCKET_NAME=public
# GS_PRIVATE_BUCKET_NAME=private
# GOOGLE_APPLICATION_CREDENTIALS=/app/certs/google-storage-api.json