| author | ymh <ymh.work@gmail.com> |
| Wed, 28 Nov 2018 15:45:37 +0100 | |
| changeset 180 | 62bffc051e1c |
| parent 179 | e7c7e6e0a8bc |
| child 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 |
|
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
|
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 |
|
2a861fed6bde
Deauthenticate user if refresh was not possible (session expired or total delta reached)
ymh <ymh.work@gmail.com>
parents:
60
diff
changeset
|
49 |
# JWT_REFRESH_EXPIRATION_DELTA = 604800 |