src/.env.tmpl
author ymh <ymh.work@gmail.com>
Thu, 29 Jul 2021 16:46:20 +0200
changeset 207 c39d91bd16af
parent 199 c78d579f4b55
permissions -rw-r--r--
update dependencies and create new version
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
24
3b3999550508 first data model for backend
ymh <ymh.work@gmail.com>
parents:
diff changeset
     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
3b3999550508 first data model for backend
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
3b3999550508 first data model for backend
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
# base url for static resources (ends with "/")
3b3999550508 first data model for backend
ymh <ymh.work@gmail.com>
parents:
diff changeset
     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
3b3999550508 first data model for backend
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
3b3999550508 first data model for backend
ymh <ymh.work@gmail.com>
parents:
diff changeset
     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
3b3999550508 first data model for backend
ymh <ymh.work@gmail.com>
parents:
diff changeset
    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
3b3999550508 first data model for backend
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
# Absolute filesystem path to the directory that will hold user-uploaded files (https://docs.djangoproject.com/en/1.11/ref/settings/#media-root)
3b3999550508 first data model for backend
ymh <ymh.work@gmail.com>
parents:
diff changeset
    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
3b3999550508 first data model for backend
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
3b3999550508 first data model for backend
ymh <ymh.work@gmail.com>
parents:
diff changeset
    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
3b3999550508 first data model for backend
ymh <ymh.work@gmail.com>
parents:
diff changeset
    22
3b3999550508 first data model for backend
ymh <ymh.work@gmail.com>
parents:
diff changeset
    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
3b3999550508 first data model for backend
ymh <ymh.work@gmail.com>
parents:
diff changeset
    25
3b3999550508 first data model for backend
ymh <ymh.work@gmail.com>
parents:
diff changeset
    26
# Comma separated values of authorized host. cf. https://docs.djangoproject.com/en/1.11/ref/settings/#allowed-hosts
3b3999550508 first data model for backend
ymh <ymh.work@gmail.com>
parents:
diff changeset
    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
3b3999550508 first data model for backend
ymh <ymh.work@gmail.com>
parents:
diff changeset
    29
3b3999550508 first data model for backend
ymh <ymh.work@gmail.com>
parents:
diff changeset
    30
# 12factor inspired DATABASE_URL environment variable cf.https://github.com/kennethreitz/dj-database-url
3b3999550508 first data model for backend
ymh <ymh.work@gmail.com>
parents:
diff changeset
    31
# examples: postgres://<user>:<password>@<host>:<port>/<db_name>
3b3999550508 first data model for backend
ymh <ymh.work@gmail.com>
parents:
diff changeset
    32
# examples: sqlite:////full/path/to/your/database/file.sqlite
3b3999550508 first data model for backend
ymh <ymh.work@gmail.com>
parents:
diff changeset
    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
3b3999550508 first data model for backend
ymh <ymh.work@gmail.com>
parents:
diff changeset
    35
3b3999550508 first data model for backend
ymh <ymh.work@gmail.com>
parents:
diff changeset
    36
# path for the log file
3b3999550508 first data model for backend
ymh <ymh.work@gmail.com>
parents:
diff changeset
    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
3b3999550508 first data model for backend
ymh <ymh.work@gmail.com>
parents:
diff changeset
    39
3b3999550508 first data model for backend
ymh <ymh.work@gmail.com>
parents:
diff changeset
    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
c78d579f4b55 Correct the registration screen.
ymh <ymh.work@gmail.com>
parents: 179
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
199
c78d579f4b55 Correct the registration screen.
ymh <ymh.work@gmail.com>
parents: 179
diff changeset
    49
# JWT_REFRESH_EXPIRATION_DELTA=604800
c78d579f4b55 Correct the registration screen.
ymh <ymh.work@gmail.com>
parents: 179
diff changeset
    50
c78d579f4b55 Correct the registration screen.
ymh <ymh.work@gmail.com>
parents: 179
diff changeset
    51
# email backend c.f. https://docs.djangoproject.com/en/2.1/topics/email/#obtaining-an-instance-of-an-email-backend
c78d579f4b55 Correct the registration screen.
ymh <ymh.work@gmail.com>
parents: 179
diff changeset
    52
# default: 'django.core.mail.backends.console.EmailBackend'
c78d579f4b55 Correct the registration screen.
ymh <ymh.work@gmail.com>
parents: 179
diff changeset
    53
# EMAIL_BACKEND=django.core.mail.backends.console.EmailBackend
c78d579f4b55 Correct the registration screen.
ymh <ymh.work@gmail.com>
parents: 179
diff changeset
    54
c78d579f4b55 Correct the registration screen.
ymh <ymh.work@gmail.com>
parents: 179
diff changeset
    55
# email host
c78d579f4b55 Correct the registration screen.
ymh <ymh.work@gmail.com>
parents: 179
diff changeset
    56
# default: localhost
c78d579f4b55 Correct the registration screen.
ymh <ymh.work@gmail.com>
parents: 179
diff changeset
    57
# EMAIL_HOST=localhost
c78d579f4b55 Correct the registration screen.
ymh <ymh.work@gmail.com>
parents: 179
diff changeset
    58
c78d579f4b55 Correct the registration screen.
ymh <ymh.work@gmail.com>
parents: 179
diff changeset
    59
# email port (integer)
c78d579f4b55 Correct the registration screen.
ymh <ymh.work@gmail.com>
parents: 179
diff changeset
    60
# default: 25
c78d579f4b55 Correct the registration screen.
ymh <ymh.work@gmail.com>
parents: 179
diff changeset
    61
# EMAIL_PORT=25
c78d579f4b55 Correct the registration screen.
ymh <ymh.work@gmail.com>
parents: 179
diff changeset
    62
c78d579f4b55 Correct the registration screen.
ymh <ymh.work@gmail.com>
parents: 179
diff changeset
    63
# email host user
c78d579f4b55 Correct the registration screen.
ymh <ymh.work@gmail.com>
parents: 179
diff changeset
    64
# default: None
c78d579f4b55 Correct the registration screen.
ymh <ymh.work@gmail.com>
parents: 179
diff changeset
    65
# EMAIL_HOST_USER=
c78d579f4b55 Correct the registration screen.
ymh <ymh.work@gmail.com>
parents: 179
diff changeset
    66
c78d579f4b55 Correct the registration screen.
ymh <ymh.work@gmail.com>
parents: 179
diff changeset
    67
# email host password
c78d579f4b55 Correct the registration screen.
ymh <ymh.work@gmail.com>
parents: 179
diff changeset
    68
# default: None
c78d579f4b55 Correct the registration screen.
ymh <ymh.work@gmail.com>
parents: 179
diff changeset
    69
# EMAIL_HOST_PASSWORD=
c78d579f4b55 Correct the registration screen.
ymh <ymh.work@gmail.com>
parents: 179
diff changeset
    70
c78d579f4b55 Correct the registration screen.
ymh <ymh.work@gmail.com>
parents: 179
diff changeset
    71
# email use TLS
c78d579f4b55 Correct the registration screen.
ymh <ymh.work@gmail.com>
parents: 179
diff changeset
    72
# default: False
c78d579f4b55 Correct the registration screen.
ymh <ymh.work@gmail.com>
parents: 179
diff changeset
    73
# EMAIL_USE_TLS=False
c78d579f4b55 Correct the registration screen.
ymh <ymh.work@gmail.com>
parents: 179
diff changeset
    74