| author | ymh <ymh.work@gmail.com> |
| Thu, 29 Jul 2021 16:46:20 +0200 | |
| changeset 207 | c39d91bd16af |
| parent 199 | c78d579f4b55 |
| permissions | -rw-r--r-- |
| 24 | 1 |
# Base url for the application. default='' |
|
60
42c07d428747
on server, augment default token lifetime and add settings in .env to control it. Add the refresh endpoint
ymh <ymh.work@gmail.com>
parents:
59
diff
changeset
|
2 |
# BASE_URL= |
| 24 | 3 |
|
4 |
# base url for static resources (ends with "/") |
|
5 |
# default : /static/ |
|
|
60
42c07d428747
on server, augment default token lifetime and add settings in .env to control it. Add the refresh endpoint
ymh <ymh.work@gmail.com>
parents:
59
diff
changeset
|
6 |
# STATIC_URL=/static/ |
| 24 | 7 |
|
8 |
# The absolute path to the directory where collectstatic will collect static files for deployment. (https://docs.djangoproject.com/en/1.11/ref/settings/#std:setting-STATIC_ROOT) |
|
|
179
e7c7e6e0a8bc
Add protocols module, and add a way to change the config ini file path
ymh <ymh.work@gmail.com>
parents:
88
diff
changeset
|
9 |
# default: <path to irinotes repository clone>/run/web/static/ |
|
60
42c07d428747
on server, augment default token lifetime and add settings in .env to control it. Add the refresh endpoint
ymh <ymh.work@gmail.com>
parents:
59
diff
changeset
|
10 |
# STATIC_ROOT= |
| 24 | 11 |
|
|
179
e7c7e6e0a8bc
Add protocols module, and add a way to change the config ini file path
ymh <ymh.work@gmail.com>
parents:
88
diff
changeset
|
12 |
# base url for media resources (ends with "/") |
|
e7c7e6e0a8bc
Add protocols module, and add a way to change the config ini file path
ymh <ymh.work@gmail.com>
parents:
88
diff
changeset
|
13 |
# default : /media/ |
|
e7c7e6e0a8bc
Add protocols module, and add a way to change the config ini file path
ymh <ymh.work@gmail.com>
parents:
88
diff
changeset
|
14 |
# MEDIA_URL=/media/ |
|
e7c7e6e0a8bc
Add protocols module, and add a way to change the config ini file path
ymh <ymh.work@gmail.com>
parents:
88
diff
changeset
|
15 |
|
| 24 | 16 |
# Absolute filesystem path to the directory that will hold user-uploaded files (https://docs.djangoproject.com/en/1.11/ref/settings/#media-root) |
17 |
# default: <path to irinotes repository clone>/run/web/media |
|
|
60
42c07d428747
on server, augment default token lifetime and add settings in .env to control it. Add the refresh endpoint
ymh <ymh.work@gmail.com>
parents:
59
diff
changeset
|
18 |
# MEDIA_ROOT= |
| 24 | 19 |
|
20 |
# Secret key for the application. cf. https://docs.djangoproject.com/en/1.11/ref/settings/#secret-key |
|
|
60
42c07d428747
on server, augment default token lifetime and add settings in .env to control it. Add the refresh endpoint
ymh <ymh.work@gmail.com>
parents:
59
diff
changeset
|
21 |
# SECRET_KEY=ARANDOMSECRETKEY |
| 24 | 22 |
|
23 |
# Debug the application. Default True |
|
|
60
42c07d428747
on server, augment default token lifetime and add settings in .env to control it. Add the refresh endpoint
ymh <ymh.work@gmail.com>
parents:
59
diff
changeset
|
24 |
# DEBUG=<true|False> |
| 24 | 25 |
|
26 |
# Comma separated values of authorized host. cf. https://docs.djangoproject.com/en/1.11/ref/settings/#allowed-hosts |
|
27 |
# default: empty |
|
|
60
42c07d428747
on server, augment default token lifetime and add settings in .env to control it. Add the refresh endpoint
ymh <ymh.work@gmail.com>
parents:
59
diff
changeset
|
28 |
# ALLOWED_HOSTS=127.0.0.1,localhost |
| 24 | 29 |
|
30 |
# 12factor inspired DATABASE_URL environment variable cf.https://github.com/kennethreitz/dj-database-url |
|
31 |
# examples: postgres://<user>:<password>@<host>:<port>/<db_name> |
|
32 |
# examples: sqlite:////full/path/to/your/database/file.sqlite |
|
33 |
# default: sqlite:///<path to irinotes repository clone>/run/db/db.sqlite3 |
|
|
60
42c07d428747
on server, augment default token lifetime and add settings in .env to control it. Add the refresh endpoint
ymh <ymh.work@gmail.com>
parents:
59
diff
changeset
|
34 |
# DATABASE_URL=sqlite:///<path to irinotes repository clone>/run/db/db.sqlite3 |
| 24 | 35 |
|
36 |
# path for the log file |
|
37 |
# default: <path to irinotes repository clone>/run/log/log.txt |
|
|
60
42c07d428747
on server, augment default token lifetime and add settings in .env to control it. Add the refresh endpoint
ymh <ymh.work@gmail.com>
parents:
59
diff
changeset
|
38 |
# LOG_FILE= |
| 24 | 39 |
|
40 |
# log level one of CRITICAL, ERROR, WARNING, INFO, DEBUG, NOTSET. Default: ERROR |
|
|
60
42c07d428747
on server, augment default token lifetime and add settings in .env to control it. Add the refresh endpoint
ymh <ymh.work@gmail.com>
parents:
59
diff
changeset
|
41 |
# LOG_LEVEL=DEBUG |
|
42c07d428747
on server, augment default token lifetime and add settings in .env to control it. Add the refresh endpoint
ymh <ymh.work@gmail.com>
parents:
59
diff
changeset
|
42 |
|
|
42c07d428747
on server, augment default token lifetime and add settings in .env to control it. Add the refresh endpoint
ymh <ymh.work@gmail.com>
parents:
59
diff
changeset
|
43 |
# expiration delta for JWT tokens (in seconds) |
|
42c07d428747
on server, augment default token lifetime and add settings in .env to control it. Add the refresh endpoint
ymh <ymh.work@gmail.com>
parents:
59
diff
changeset
|
44 |
# default: 3600 |
| 199 | 45 |
# JWT_EXPIRATION_DELTA=3600 |
|
88
2a861fed6bde
Deauthenticate user if refresh was not possible (session expired or total delta reached)
ymh <ymh.work@gmail.com>
parents:
60
diff
changeset
|
46 |
|
|
2a861fed6bde
Deauthenticate user if refresh was not possible (session expired or total delta reached)
ymh <ymh.work@gmail.com>
parents:
60
diff
changeset
|
47 |
# expiration refresh delta for JWT tokens (in seconds) |
|
2a861fed6bde
Deauthenticate user if refresh was not possible (session expired or total delta reached)
ymh <ymh.work@gmail.com>
parents:
60
diff
changeset
|
48 |
# default: 3600*24*7 = 604800 |
| 199 | 49 |
# JWT_REFRESH_EXPIRATION_DELTA=604800 |
50 |
||
51 |
# email backend c.f. https://docs.djangoproject.com/en/2.1/topics/email/#obtaining-an-instance-of-an-email-backend |
|
52 |
# default: 'django.core.mail.backends.console.EmailBackend' |
|
53 |
# EMAIL_BACKEND=django.core.mail.backends.console.EmailBackend |
|
54 |
||
55 |
# email host |
|
56 |
# default: localhost |
|
57 |
# EMAIL_HOST=localhost |
|
58 |
||
59 |
# email port (integer) |
|
60 |
# default: 25 |
|
61 |
# EMAIL_PORT=25 |
|
62 |
||
63 |
# email host user |
|
64 |
# default: None |
|
65 |
# EMAIL_HOST_USER= |
|
66 |
||
67 |
# email host password |
|
68 |
# default: None |
|
69 |
# EMAIL_HOST_PASSWORD= |
|
70 |
||
71 |
# email use TLS |
|
72 |
# default: False |
|
73 |
# EMAIL_USE_TLS=False |
|
74 |