forked from codalab/codalab-competitions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env_production_sample
138 lines (112 loc) · 4.26 KB
/
.env_production_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
# ----------------------------------------------------------------------------
# Submission processing
# ----------------------------------------------------------------------------
SUBMISSION_TEMP_DIR=/tmp/codalab
# ----------------------------------------------------------------------------
# Storage
# ----------------------------------------------------------------------------
# Uncomment to use AWS
DEFAULT_FILE_STORAGE=storages.backends.s3boto.S3BotoStorage
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
# Uncomment to use Minio
#DEFAULT_FILE_STORAGE=storages.backends.s3boto.S3BotoStorage
#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
# 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:5671//
BROKER_USE_SSL=True
RABBITMQ_DEFAULT_USER=guest
RABBITMQ_DEFAULT_PASS=guest
RABBITMQ_HOST=rabbit
RABBITMQ_PORT=5671
RABBITMQ_MANAGEMENT_PORT=15672
FLOWER_BASIC_AUTH=root:password
FLOWER_PORT=5555
# =========================================================================
# Email
# =========================================================================
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]>
# ----------------------------------------------------------------------------
# Django/nginx
# ----------------------------------------------------------------------------
DJANGO_SECRET_KEY=change-me-to-a-secret
DJANGO_PORT=8000
# Make sure debug is off on production
#DEBUG=
#IS_DEV=False
# These admins will be emailed when there are errors
ADMINS=Name,[email protected];OtherName,[email protected]
NGINX_PORT=80
SSL_PORT=443
# 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
SSL_ALLOWED_HOSTS=yourhost.com
# Set this to your actual domain, like example.com
CODALAB_SITE_DOMAIN=localhost
# How many site workers (submission result processors)?
WEB_CONCURRENCY=16
# ----------------------------------------------------------------------------
# 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
# ----------------------------------------------------------------------------
# Logging
# ----------------------------------------------------------------------------
# Make sure LOGGING_DIR doesn't end with a slash
LOGGING_DIR=./var/logs
DJANGO_LOG_LEVEL=info