Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
30 lines (30 loc) · 1.89 KB
/
Copy path.env.example
File metadata and controls
30 lines (30 loc) · 1.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
# Copy to .env for local development. Values below are placeholders only.
DTC_ENVIRONMENT=local
DJANGO_SETTINGS_MODULE=website.settings.local
DJANGO_SECRET_KEY=replace-with-a-long-random-local-value
DJANGO_ALLOWED_HOSTS=localhost,127.0.0.1,web.dtcdev.click
DJANGO_CSRF_TRUSTED_ORIGINS=http://localhost:8000,https://web.dtcdev.click
# Optional. Relative paths resolve from the repository root.
DTC_SQLITE_PATH=.tmp/local.sqlite3
# Optional. Set this to the GitHub webhook secret for registered course repositories.
COURSE_REPOSITORY_WEBHOOK_SECRET=replace-with-a-random-webhook-secret
# Optional. The source-managed homework answer keyring is injected separately.
# COURSE_HOMEWORK_ANSWER_KEYRING=
# Optional. Public projection images are read through a pluggable media store.
# `local` (default) reads the gitignored content/public_projection/media tree that
# scripts/prod/sync_public_media_hydrate.py materialises -- needs no AWS credential,
# works offline. `memory` is the deterministic offline fixture used by CI. `s3` reads the
# real published bucket directly and needs no hydration, but needs AWS credentials
# in your ambient environment (env vars, profile, or SSO) that can read
# s3://dtc-website-media/images/*. Uncomment to opt in once you have that access;
# see _docs/runbooks/public-media-objects.md for what credentials are required.
# PUBLIC_MEDIA_STORE_BACKEND=s3
# PUBLIC_MEDIA_S3_BUCKET=dtc-website-media
# PUBLIC_MEDIA_S3_REGION=eu-west-1
# Optional. The private, in-VPC address of Relay. Relay renders every open,
# click and unsubscribe link in mail from its own PUBLIC_BASE_URL, which points
# at this site, so this site answers those paths and hands each one to Relay.
# Relay has no public listener, so this is never a public URL. Leave it unset
# locally: with no Relay configured the three routes answer 404 and the click
# route never redirects.
# RELAY_LINK_BRIDGE_BASE_URL=http://relay.website.internal:8000