-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_dev.env.example
62 lines (53 loc) · 2.84 KB
/
config_dev.env.example
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
# Whether to run Django in debug mode
# Django setting: DEBUG https://docs.djangoproject.com/en/4.2/ref/settings/#debug
DEBUG=True
# Configures database for mpbackend using URL style. The format is
#
# postgis://USER:PASSWORD@HOST:PORT/NAME
#
# Unused components may be left out, only Postgis is supported.
# The example below configures mpbackend to use local PostgreSQL database
# called "mpbackend", connecting same as username as Django is running as.
# Django setting: DATABASES (but not directly) https://docs.djangoproject.com/en/4.2/ref/settings/#databases
# When running with docker change 'localhost' host 'postgres'.
DATABASE_URL=postgis://mobilityprofile:mobilityprofile@localhost:5432/mobilityprofile
# List of Host-values, that mpbackend will accept in requests.
# This setting is a Django protection measure against HTTP Host-header attacks
# https://docs.djangoproject.com/en/2.2/topics/security/#host-headers-virtual-hosting
# Specified as a comma separated list of allowed values. Note that this does
# NOT matter if you are running with DEBUG
# Django setting: ALLOWED_HOSTS https://docs.djangoproject.com/en/4.2/ref/settings/#allowed-hosts
ALLOWED_HOSTS=127.0.0.1,localhost
# Django setting: LANGUAGES
# https://docs.djangoproject.com/en/2.2/ref/settings/#languages
LANGUAGES=fi,sv,en
# Email settings
EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend
EMAIL_HOST=smtp.turku.fi
EMAIL_PORT=25
EMAIL_USE_TLS=True
# Media root is the place in file system where Django and, by extension
# smbackend stores "uploaded" files. This means any and all files
# that are inputted through importers or API
# Django setting: MEDIA_ROOT https://docs.djangoproject.com/en/4.2/ref/settings/#media-root
#MEDIA_ROOT=/home/mpbackend/media
# Static root is the place where smbackend will install any static
# files that need to be served to clients. For smbackend this is mostly
# JS and CSS for the API exploration interface + admin
# Django setting: STATIC_ROOT https://docs.djangoproject.com/en/4.2/ref/settings/#static-root
#STATIC_ROOT=/home/mpbackend/static
# Media URL is address (URL) where users can access files in MEDIA_ROOT
# through http. Ie. where your uploaded files are publicly accessible.
# In the simple case this is a relative URL to same server as API
# Django setting: MEDIA_URL https://docs.djangoproject.com/en/4.2/ref/settings/#media-url
MEDIA_URL=/media/
# Static URL is address (URL) where users can access files in STATIC_ROOT
# through http. Same factors apply as to MEDIA_URL
# Django setting: STATIC_URL https://docs.djangoproject.com/en/4.2/ref/settings/#static-url
STATIC_URL=/static/
# If set docker will create a superuser, the user can be used to
# access the admin page from where importers can be run.
# DJANGO_SUPERUSER_PASSWORD=*****
# DJANGO_SUPERUSER_USERNAME=admin