forked from pupilfirst/pupilfirst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.env
137 lines (104 loc) · 4.25 KB
/
example.env
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
# Basic Rails config.
RACK_ENV=development
RAILS_ENV=development
PORT=3000
# Set this environment variable in production to enable Rails' public file server.
RAILS_SERVE_STATIC_FILES=true
# Comma-seperated list of supported locales.
I18N_AVAILABLE_LOCALES=en,ru,ar
# The default locale for the app.
I18N_DEFAULT_LOCALE=en
# Timeout enforced by the slowpoke gem.
SLOWPOKE_TIMEOUT=30
# AWS credentials for file storage.
AWS_ACCESS_KEY_ID=access_key_id_from_aws
AWS_SECRET_ACCESS_KEY=secret_access_key_from_aws
AWS_REGION=bucket_region_name
AWS_BUCKET=bucket_name_from_aws
# CDN base URL.
ASSET_HOST=asset_host_url
# Cloudfront
CLOUDFRONT_PRIVATE_KEY_BASE_64_ENCODED=cloudfront_private_key_from_aws
CLOUDFRONT_HOST=cloudfront_host_from_aws
CLOUDFRONT_KEY_PAIR_ID=cloudfront_key_pair_id_from_aws
CLOUDFRONT_EXPIRY=expiry_in_seconds
# Postgres credentials.
DB_NAME=pupilfirst
DB_NAME_TEST=pupilfirst_test
DB_HOST=localhost
DB_USERNAME=postgres_username
DB_PASSWORD=postgres_password
# Keys for setting up OAuth.
GITHUB_KEY=key_for_github_oauth
GITHUB_SECRET=secret_for_github_oauth
FACEBOOK_KEY=key_for_facebook_oauth
FACEBOOK_SECRET=secret_for_facebook_oauth
GOOGLE_OAUTH2_CLIENT_ID=client_id_for_google_oauth
GOOGLE_OAUTH2_CLIENT_SECRET=client_secret_for_google_oauth
DISCORD_KEY=key_for_discord_oauth
DISCORD_SECRET=secret_for_discord_oauth
# Postmark mailing service.
POSTMARK_API_TOKEN=api_token_from_postmark
POSTMARK_HOOK_ID=bounce_webhook_username_from_postmark
POSTMARK_HOOK_SECRET=bounce_webhook_password_from_postmark
# Domain which has been configured for re-direction after SSO with OAuth.
SSO_DOMAIN=localhost:3000
# Which driver to use when running tests. See `rails_helper.rb` for options.
JAVASCRIPT_DRIVER=headless_chrome
# This is the number of seconds capybara will wait for expected content.
CAPYBARA_MAX_WAIT_TIME=5
# Report runtime errors to Rollbar.
ROLLBAR_CLIENT_TOKEN=post_client_item_from_rollbar
ROLLBAR_SERVER_TOKEN=post_server_item_from_rollbar
ROLLBAR_CAPTURE_UNCAUGHT=false
ROLLBAR_CAPTURE_UNHANDLED_REJECTIONS=false
# Maximum number of markdown attachments allowed per day, per user.
MAX_DAILY_MARKDOWN_ATTACHMENTS=50
# New Relic APM authentication
NEW_RELIC_LICENSE_KEY=token_from_new_relic
# Change user time-zone used in tests; this should match your system's timezone.
SPEC_USER_TIME_ZONE=Asia/Kolkata
# Number of times to retry a failing system test.
SPEC_RETRY_COUNT=2
# Read timeout for webhooks in seconds
WEBHOOK_READ_TIMEOUT=30
# GraphQL API rate limit(number of requests) and period(in seconds) for a client
GRAPH_API_RATE_LIMIT=300
GRAPH_API_RATE_PERIOD=60
# Vimeo Access Token, used for direct uploads to a Vimeo account (optional).
VIMEO_ACCESS_TOKEN=insert_vimeo_token
VIMEO_ACCOUNT_TYPE=basic
# Vimeo max retry attempts to resolve embed code
VIMEO_EMBED_MAX_RETRY_ATTEMPTS=5
# Vapid Keys for WebPush notification
VAPID_PUBLIC_KEY=vapid_public_key
VAPID_PRIVATE_KEY=vapid_private_key
# Timeouts for one-time tokens.
RESET_PASSWORD_TOKEN_TIME_LIMIT=30
LOGIN_TOKEN_TIME_LIMIT=4320
# Recaptcha v3 keys, for the first-level score-based evaluation.
RECAPTCHA_V3_SITE_KEY=get_from_google_recaptcha
RECAPTCHA_V3_SECRET_KEY=get_from_google_recaptcha
# Recaptcha v2 keys, the checkbox-based challenge for when the score fails.
RECAPTCHA_V2_SITE_KEY=get_from_google_recaptcha
RECAPTCHA_V2_SECRET_KEY=get_from_google_recaptcha
# UTC time at which whenever should configure daily tasks.
SCHEDULE_CLEANUP=12:00 am
SCHEDULE_DAILY_DIGEST=6:00 pm
SCHEDULE_NOTIFY_AND_DELETE_INACTIVE_USERS=9:00 pm
# Time interval (in seconds) for polling submission report for automated tests.
SUBMISSION_REPORT_POLL_TIME=30
# Days for allowing coaches to review submissions of inactive students
INACTIVE_SUBMISSION_REVIEW_ALLOWED_DAYS=0
# URL for Redis database used for throttling API requests using rack-attack
REDIS_URL=get_redis_database_url
# Maximum length of a markdown block in the curriculum editor.
MARKDOWN_CURRICULUM_EDITOR_MAX_LENGTH=10000
# Number of automatic submission rejections after which human coaches should be notified.
BOT_EVALUATOR_IDS=1,2,3
BOT_EVALUATOR_REPEAT_REJECTION_ALERT_THRESHOLD=4
# Default is 5 MB
MAX_UPLOAD_FILE_SIZE=5242880
# A variable to configure the school for discord bot rake task
SCHOOL_ID_FOR_DISCORD_BOT=1