This repository has been archived by the owner on May 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.example
85 lines (65 loc) · 4.3 KB
/
.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# !!REQUIRED!!
# Secret key that is used for important secret stuff (keep the one used in production a secret!)
# See https://docs.djangoproject.com/en/4.2/ref/settings/#secret-key
# You can generate one at https://djecrety.ir
SECRET_KEY=[Replace with your generated secret key]
# A boolean flag for whether the server is being run in production mode
PRODUCTION=True
# !!Ignored when PRODUCTION is True!!
# A boolean flag for whether the development server should display debug messages in HTTP responses
# See https://docs.djangoproject.com/en/4.2/ref/settings/#debug
DEBUG=True
# !!Ignored when DEBUG is False!!
# A boolean flag for whether the emails (E.g. email address verification messages) should sent to the console instead of actually sending as an email
# See https://docs.djangoproject.com/en/4.2/topics/email#obtaining-an-instance-of-an-email-backend
EMAIL_TO_CONSOLE=True
# !!REQUIRED when EMAIL_TO_CONSOLE is False!!
# The host address for your SMTP server that emails will be sent from when EMAIL_TO_CONSOLE is False
# See https://docs.djangoproject.com/en/4.2/ref/settings#email-host
EMAIL_HOST=[Replace with your SMTP server host address (E.g. domain or IP address)]
# The network port for your SMTP server that emails will be sent from when EMAIL_TO_CONSOLE is False
# See https://docs.djangoproject.com/en/4.2/ref/settings#email-port
EMAIL_PORT=25
# The username for authentication to the SMTP server that emails will be sent from when EMAIL_TO_CONSOLE is False
# This environment variable is optional because authentication with the SMTP server is optional
# See https://docs.djangoproject.com/en/4.2/ref/settings#email-host-user
EMAIL_HOST_USER=""
# The password for authentication to the SMTP server that emails will be sent from when EMAIL_TO_CONSOLE is False
# This environment variable is optional because authentication with the SMTP server is optional
# See https://docs.djangoproject.com/en/4.2/ref/settings#email-host-password
EMAIL_HOST_PASSWORD=""
# Whether to use a TLS (secure) connection when talking to the SMTP server
# This option is exclusive with EMAIL_USE_SSL
# See https://docs.djangoproject.com/en/4.2/ref/settings#email-use-tls
EMAIL_USE_TLS=False
# Whether to use an implicit TLS (secure) connection when talking to the SMTP server
# This option is exclusive with EMAIL_USE_TLS
# See https://docs.djangoproject.com/en/4.2/ref/settings#email-use-ssl
EMAIL_USE_SSL=False
# A list of domain names/IP addresses that the server is allowed to be hosted from
# See https://docs.djangoproject.com/en/4.2/ref/settings/#allowed-hosts
ALLOWED_HOSTS=localhost,127.0.0.1,example.com
# !!Ignored when PRODUCTION is False!!
# A comma separated list of fully qualified URLs that the server is allowed to be hosted from
# See https://docs.djangoproject.com/en/4.2/ref/settings/#csrf-trusted-origins
ALLOWED_ORIGINS=https://example.com,https://otherexample.com
# The minimum level that logs must meet in order to be logged to the output stream (console)
# One of: DEBUG, INFO, WARNING, ERROR, CRITICAL
# See https://docs.djangoproject.com/en/4.2/topics/logging/#loggers
LOG_LEVEL=WARNING
# A string filepath pointing to the location of the JSON file to be used to generate test data
# See test_data.json as an example for how to structure the JSON dictionaries
TEST_DATA_JSON_FILE_PATH=ratemymodule/tests/test_data.json
# An integer for the number of days given for users to verify their email address after a verification email has been sent to their inbox
# See https://docs.allauth.org/en/latest/account/configuration.html#ACCOUNT_EMAIL_CONFIRMATION_EXPIRE_DAYS
ACCOUNT_EMAIL_CONFIRMATION_EXPIRE_DAYS=1
# !!REQUIRED!!
# OAuth client IDs used to authorise with the social account providers
# See https://docs.allauth.org/en/latest/socialaccount/provider_configuration.html & https://docs.allauth.org/en/latest/socialaccount/providers/index.html
OAUTH_GOOGLE_CLIENT_ID=[Replace with your Google OAuth client ID]
OAUTH_MICROSOFT_CLIENT_ID=[Replace with your Microsoft OAuth client ID]
# !!REQUIRED!!
# OAuth secret keys used to authorise with the social account providers
# See https://docs.allauth.org/en/latest/socialaccount/provider_configuration.html & https://docs.allauth.org/en/latest/socialaccount/providers/index.html
OAUTH_GOOGLE_SECRET=[Replace with your Google OAuth secret]
OAUTH_MICROSOFT_SECRET=[Replace with your Microsoft OAuth secret]