-
Notifications
You must be signed in to change notification settings - Fork 129
/
.env_sample
157 lines (130 loc) · 5.12 KB
/
.env_sample
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
154
155
156
157
# ----------------------------------------------------------------------------
# Submission processing
# ----------------------------------------------------------------------------
SUBMISSION_TEMP_DIR=/tmp/codalab
# ----------------------------------------------------------------------------
# Storage
# ----------------------------------------------------------------------------
# May not be necessary. When testing with Py3 initially, this solved some SSL errors from Boto/Storages.
AWS_CA_BUNDLE=/usr/local/lib/python3.8/site-packages/certifi/cacert.pem
# Uncomment to use AWS
DEFAULT_FILE_STORAGE=storages.backends.s3boto3.S3Boto3Storage
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_STORAGE_BUCKET_NAME=public
AWS_STORAGE_PRIVATE_BUCKET_NAME=private
AWS_S3_CALLING_FORMAT=boto.s3.connection.OrdinaryCallingFormat
AWS_S3_HOST=s3.amazonaws.com
AWS_QUERYSTRING_AUTH=False
S3DIRECT_REGION=us-west-2
# ^^Set the S3DIRECT_REGION to the AWS region of your storage buckets
AWS_S3_REGION_NAME=us-east-1
AWS_S3_SIGNATURE_VERSION=s3v4
# ----- Virtual Host style addressing, 2020+
AWS_S3_ADDRESSING_STYLE=virtual
S3DIRECT_URL_STRUCTURE=https://{1}.{0}
# ----- Path Style addressing (legacy)
#AWS_S3_ADDRESSING_STYLE=path
#S3DIRECT_URL_STRUCTURE=https://{0}/{1}
# Uncomment to use Minio
#DEFAULT_FILE_STORAGE=storages.backends.s3boto3.S3Boto3Storage
#AWS_ACCESS_KEY_ID=
#AWS_SECRET_ACCESS_KEY=
#AWS_STORAGE_BUCKET_NAME=public
#AWS_STORAGE_PRIVATE_BUCKET_NAME=private
#AWS_S3_CALLING_FORMAT=boto.s3.connection.OrdinaryCallingFormat
#AWS_S3_HOST=minio.yoursite.org
#AWS_QUERYSTRING_AUTH=False
#S3DIRECT_REGION=us-east-1
#S3_USE_SIGV4=True
#AWS_S3_ENDPOINT_URL=https://minio.yoursite.org
#AWS_S3_REGION_NAME=us-east-1
#AWS_S3_SIGNATURE_VERSION=s3v4
#AWS_S3_ADDRESSING_STYLE=path
#S3DIRECT_URL_STRUCTURE=https://{0}/{1}
# Uncomment to use Azure
#DEFAULT_FILE_STORAGE=codalab.azure_storage.AzureStorage
#AZURE_ACCOUNT_NAME=
#AZURE_ACCOUNT_KEY=
#AZURE_CONTAINER=public
# Only set these if bundle storage key is different from normal account keys
# BUNDLE_AZURE_ACCOUNT_NAME=
# BUNDLE_AZURE_ACCOUNT_KEY=
# BUNDLE_AZURE_CONTAINER=bundles
# ----------------------------------------------------------------------------
# Database
# ----------------------------------------------------------------------------
# Used engine (mysql, postgresql, sqlite3, memory)
DB_ENGINE=postgresql
# Connection parameters
DB_HOST=postgres
DB_PORT=5432
DB_NAME=codalab_website
DB_USER=root
DB_PASSWORD=password
# Path where DB files will be mapped
DB_DATA_PATH=./var/data/postgres
# ----------------------------------------------------------------------------
# Caching
# ----------------------------------------------------------------------------
MEMCACHED_PORT=11211
# ----------------------------------------------------------------------------
# RabbitMQ and management
# ----------------------------------------------------------------------------
BROKER_URL=pyamqp://guest:guest@rabbit:5672//
#BROKER_USE_SSL=True
RABBITMQ_DEFAULT_USER=guest
RABBITMQ_DEFAULT_PASS=guest
RABBITMQ_HOST=rabbit
RABBITMQ_PORT=5672
RABBITMQ_MANAGEMENT_PORT=15672
FLOWER_BASIC_AUTH=root:password
FLOWER_PORT=5555
# ----------------------------------------------------------------------------
# Django/nginx
# ----------------------------------------------------------------------------
DJANGO_SECRET_KEY=change-me-to-a-secret
DJANGO_PORT=8000
NGINX_PORT=80
SSL_PORT=443
# Make sure debug is off on production
DEBUG=True
# These admins will be emailed when there are errors
#ADMINS=Name,[email protected];OtherName,[email protected]
# Put SSL certificates in ./certs/ and they are mapped to /app/certs in the container
#SSL_CERTIFICATE=/app/certs/certificate.crt
#SSL_CERTIFICATE_KEY=/app/certs/certificate.pem
# Allowed hosts separated by space (e.g. example.com)
SSL_ALLOWED_HOSTS=
# Set this to your actual domain, like example.com
CODALAB_SITE_DOMAIN=localhost
# How many site workers (submission result processors)?
# A higher value, e.g. 16, is advised for a production environment
WEB_CONCURRENCY=2
# Google Analytics code (leave empty to disable Google's user tracking)
GOOGLE_ANALYTICS=
# =========================================================================
# Email
# =========================================================================
# This section can be left commented for a testing environment
#EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend
#EMAIL_HOST=smtp.sendgrid.net
#EMAIL_HOST_USER=
#EMAIL_HOST_PASSWORD=
#EMAIL_PORT=587
#EMAIL_USE_TLS=True
#DEFAULT_FROM_EMAIL=CodaLab <[email protected]>
# ----------------------------------------------------------------------------
# Logging
# ----------------------------------------------------------------------------
# Make sure LOGGING_DIR doesn't end with a slash
LOGGING_DIR=./var/logs
DJANGO_LOG_LEVEL=debug
# ----------------------------------------------------------------------------
# ChaHub
# ----------------------------------------------------------------------------
# Be sure to include trailing slash on URL
#CHAHUB_API_URL=https://chahub.org/api/v1/
#CHAHUB_API_KEY=some-secret-key
#SOCIAL_AUTH_CHAHUB_BASE_URL=https://chahub.org