-
Notifications
You must be signed in to change notification settings - Fork 7
/
.env.template
156 lines (133 loc) · 6.41 KB
/
.env.template
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# Parking Permits environment configuration
# This is supposed to be used only in development, for Django to read it rename it to .env
# For production use, set environment variables using the facilities
# of your runtime environment.
# Whether to run Django in debug mode
# Django setting: DEBUG https://docs.djangoproject.com/en/3.0/ref/settings/#debug
DEBUG=True
# Level of Django logging. This variable only has effect if DEBUG=True. In that case,
# all events above the given level will be logged.
# Django setting: DJANGO_LOG_LEVEL https://docs.djangoproject.com/en/3.0/topics/logging/#examples
DJANGO_LOG_LEVEL=DEBUG
# Maximum age of Django db connection. The default Django setting closes the db connection after
# after each request, which may cause slowdown in case the db backend is slow to establish
# connections.
CONN_MAX_AGE=0
# Configures database for Parking Permits using URL style. Format is:
# postgis://USER:PASSWORD@HOST:PORT/DBNAME
DATABASE_URL=postgis://parking_permits_user:parking_permits_password@parking-permits-database:5432/parking_permits_db
# Jwt token authentication, not yet in use. This settings Specifies
# the value that must be present in the "aud"-key of the token presented
# by a client when making an authenticated request. Parking Permits uses this
# key for verifying that the token was meant for accessing this particular
# instance (the tokens are signed, see below).
#TOKEN_AUTH_ACCEPTED_AUDIENCE=string-identifying-this-tvp-instance
# This key will be used to verify the JWT token is from trusted
# Identity Provider. The provider must have signed
# the JWT TOKEN using this shared secret
# Note: Wre are not yet using token authentication
# Does not correspond to standard Django setting
#TOKEN_AUTH_SHARED_SECRET=
# Secret used for various functions within Django.
# Django setting: SECRET_KEY https://docs.djangoproject.com/en/3.0/ref/settings/#secret-key
#SECRET_KEY=
# List of Host-values, that Parking Permits will accept in requests.
# https://docs.djangoproject.com/en/3.0/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/3.0/ref/settings/#allowed-hosts
#ALLOWED_HOSTS=example.address.com,another.address.com
# List of tuples (or just e-mail addresses) specifying Administrators of this
# Parking Permits instance. Django uses this only when logging is configured to
# send exceptions to admins. Parking Permits does not do this. Still you may want
# to set this for documentation
# Django setting: ADMINS https://docs.djangoproject.com/en/3.0/ref/settings/#admins
# Cookie prefix is added to the every cookie set by Parking Permits. These are
# mostly used when accessing the internal Django admin site. This applies
# to django session cookie and csrf cookie
# Django setting: prepended to CSRF_COOKIE_NAME and SESSION_COOKIE_NAME
COOKIE_PREFIX=parking-permits
# Django INTERNAL_IPS setting allows some debugging aids for the addresses
# specified here
# DJango setting: INTERNAL_IPS https://docs.djangoproject.com/en/3.0/ref/settings/#internal-ips
INTERNAL_IPS=127.0.0.1
# Specifies a header that is trusted to indicate that the request was using
# https while traversing over the Internet at large. This is used when
# a proxy terminates the TLS connection and forwards the request over
# a secure network. Specified using a tuple.
# Django setting: SECURE_PROXY_SSL_HEADER https://docs.djangoproject.com/en/3.0/ref/settings/#secure-proxy-ssl-header
#SECURE_PROXY_SSL_HEADER=('HTTP_X_FORWARDED_PROTO', 'https')
# Specifies that Django is to use `X-Forwarded-Host` as it would normally
# use the `Host`-header. This is necessary when `Host`-header is used for
# routing the requests in a network of reverse proxies. `X-Forwarded-Host`
# is then used to carry the Host-header value supplied by the origin client.
# This affects how ALLOWED_HOSTS behaves, as well.
# Django setting: https://docs.djangoproject.com/en/3.0/ref/settings/#use-x-forwarded-host
# TRUST_X_FORWARDED_HOST=False
# The default value for Resource.timezone field
#RESOURCE_DEFAULT_TIMEZONE=Europe/Helsinki
# A list of origins that are authorized to make cross-site HTTP requests. Defaults to [].
# An Origin is defined by the CORS RFC Section 3.2 as a URI scheme + hostname + port,
# or one of the special values 'null' or 'file://'.
# Default ports (HTTPS = 443, HTTP = 80) are optional here.
#CORS_ALLOWED_ORIGINS=
# Boolean. Set true to enable audit logging.
# Logs are saved to database configured to be used by django.
#AUDIT_LOGGING_ENABLED=
BOOTSTRAP_PARKING_PERMITS=True
CREATE_SUPERUSER=True
DEV_SERVER=True
SEND_MAIL=True
DJANGO_SECRET_KEY=NotImportantHere
DJANGO_SUPERUSER_PASSWORD=coconut
DJANGO_SUPERUSER_USERNAME=admin
INSTALL_PRECOMMIT=True
WAIT_FOR_IT_ADDRESS=parking-permits-database:5432
# OIDC auth settings
TOKEN_AUTH_ACCEPTED_AUDIENCE=parking-permits-api-dev,parking-permits-api-test
TOKEN_AUTH_ACCEPTED_SCOPE_PREFIX=access,gdprquery,gdprdelete
TOKEN_AUTH_AUTHSERVER_URL=https://tunnistus.test.hel.ninja/auth/realms/helsinki-tunnistus
TOKEN_AUTH_REQUIRE_SCOPE_PREFIX=True
TOKEN_AUTH_API_AUTHORIZATION_FIELD=authorization.permissions.scopes
GDPR_API_QUERY_SCOPE=parkingpermitsapitest.gdprquery
GDPR_API_DELETE_SCOPE=parkingpermitsapitest.gdprdelete
HELUSERS_BACK_CHANNEL_LOGOUT_ENABLED=True
HELUSERS_USER_MIGRATE_ENABLED=False
# DVV integration
DVV_PERSONAL_INFO_URL=
DVV_USERNAME=
DVV_PASSWORD=
DVV_SOSONIMI=
DVV_LOPPUKAYTTAJA=
# Email configuration
EMAIL_USE_TLS=False
EMAIL_HOST=
EMAIL_HOST_USER=
EMAIL_HOST_PASSWORD=
EMAIL_PORT=25
EMAIL_TIMEOUT=15
DEFAULT_FROM_EMAIL=
DEBUG_MAILPIT=
# Sentry configuration
SENTRY_DSN=
SENTRY_ENVIRONMENT=local-development-unconfigured
# Talpa integration
TALPA_NAMESPACE="asukaspysakointi"
TALPA_API_KEY=
TALPA_MERCHANT_EXPERIENCE_API=
TALPA_PRODUCT_EXPERIENCE_API=
TALPA_ORDER_EXPERIENCE_API=
TALPA_ORDER_PAYMENT_MAX_PERIOD_MINS=
TALPA_ORDER_PAYMENT_WEBHOOK_WAIT_BUFFER_MINS=
TALPA_WEBHOOK_WAIT_BUFFER_SECONDS=
TALPA_SUBSCRIPTION_PERIOD_UNIT=
TALPA_DEFAULT_ACCOUNTING_COMPANY_CODE=
TALPA_DEFAULT_ACCOUNTING_VAT_CODE=
TALPA_DEFAULT_ACCOUNTING_INTERNAL_ORDER=
TALPA_DEFAULT_ACCOUNTING_PROFIT_CENTER=
TALPA_DEFAULT_ACCOUNTING_BALANCE_PROFIT_CENTER=
TALPA_DEFAULT_ACCOUNTING_PROJECT=
TALPA_DEFAULT_ACCOUNTING_OPERATION_AREA=
TALPA_DEFAULT_ACCOUNTING_MAIN_LEDGER_ACCOUNT=