-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.env.template
More file actions
73 lines (55 loc) · 2.14 KB
/
.env.template
File metadata and controls
73 lines (55 loc) · 2.14 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
# Copy this template to the das root directory and rename to .env
# Modify settings as appropriate for your environment.
#
# Read while loading django settings by the python environ library in das_server.settings.
# Most of the overrides are happening in local_settings_docker.py
#
# Locate this file in the root directory which is the parent of directory das_server
# Database
## Direct Database connection
DB_NAME=das
DB_USER=das
DB_PASSWORD=password
DB_HOST=postgis
DB_PORT=5432
## Pooler connection
DB_POOLER_NAME=main
DB_POOLER_HOST=pgcat
DB_POOLER_PORT=6432
## Proxied Pooler connection
DB_POOLER_PROXY_NAME=proxy_primary
API_HOST=api
API_PORT=8000
#local_settings_docker params
#Note - commented out lines are optional for dev work,
#but can be uncommented and set
ENABLE_DEBUG=True
ENABLE_DEV=True
ENABLE_SILK=True
LOGGING_LEVEL=INFO
SHOW_TRACK_DAYS=2000
SHOW_STATIONARY_SUBJECTS_ON_MAP=True
TIME_ZONE=America/Los_Angeles
FQDN=localhost
# Allow providing a list of alternate server names on environment.
ALT_SERVER_NAMES=localhost:9000,localhost:8000
CORS_ORIGIN_ALLOW_ALL=True
SESSION_COOKIE_SECURE=False
CSRF_COOKIE_SECURE=False
STATIC_URL="/api/v1.0/static/"
# this needed when running a dev enviroment. Set this path to the das source directory on your local or in the container.
STATIC_ROOT="/workspaces/das/das/www/static"
MEDIA_ROOT='/tmp/user-uploads'
MEDIA_URL='http://localhost:8000/media/user-uploads/'
DEFAULT_FILE_STORAGE=django.core.files.storage.FileSystemStorage
KML_OVERLAY_IMAGE="ste_overlay_image.png"
# this single host name updates all the places settings.py that reference a redis server
# which is fine for development
REDIS_HOST="host.docker.internal"
# this for running on an ARM processor like the Macbook M1-M?
GEOS_LIBRARY_PATH='/usr/lib/aarch64-linux-gnu/libgeos_c.so.1'
GS_BUCKET_NAME=""
TMS_API_CLIENT="core.tms.DjangoSettingsClient"
TENANT_ID="c0973be2-8e11-4cb8-8463-897fb96391d0"
GITGUARDIAN_API_KEY="<your key here>" # the API key from your GitGuardian account when you set up your pre-commit hooks
GITGUARDIAN_DOTENV_PATH=/workspaces/das/das/.env # set a shell environment variable for the pre-commit ggshield library to find