src/.env.tmpl
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--
Add first version of deploy scripts
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
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