diff options
| author | doobry | 2019-10-24 14:08:48 +0200 |
|---|---|---|
| committer | doobry | 2019-10-24 14:08:48 +0200 |
| commit | 05d40216ee96649038f465ae2f28ac7ba28c5048 (patch) | |
| tree | 0d81f5570c76c71277a5c7c4295f514b570b7b21 /README.md | |
| parent | f544d94a8c903dcdc9f576af32958334b4a2a71c (diff) | |
Add support for external config files (Fixes: #33)v0.1.0
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 13 |
1 files changed, 13 insertions, 0 deletions
| @@ -190,12 +190,25 @@ The `key` parameter is the key from a previously uploaded file. | |||
| 190 | ``` | 190 | ``` |
| 191 | 191 | ||
| 192 | # Docker | 192 | # Docker |
| 193 | |||
| 193 | There are two Dockerfiles present in this repository. The file called `Dockerfile.development` is used for development | 194 | There are two Dockerfiles present in this repository. The file called `Dockerfile.development` is used for development |
| 194 | and `Dockerfile.production` is used for production deployments. | 195 | and `Dockerfile.production` is used for production deployments. |
| 195 | 196 | ||
| 196 | You can find the automated docker builds in the registry of this | 197 | You can find the automated docker builds in the registry of this |
| 197 | repository: https://0xacab.org/jvoisin/mat2-web/container_registry | 198 | repository: https://0xacab.org/jvoisin/mat2-web/container_registry |
| 198 | 199 | ||
| 200 | # Configuration | ||
| 201 | |||
| 202 | The default settings from `main.py` may be overridden by adding a `config.py` | ||
| 203 | file and add custom values for the relevant flask config variables. E.g.: | ||
| 204 | |||
| 205 | ``` | ||
| 206 | MAX_CONTENT_LENGTH = 32 * 1024 * 1024 # 32MB | ||
| 207 | ``` | ||
| 208 | |||
| 209 | See [Flask configuration docs](http://exploreflask.com/en/latest/configuration.html) | ||
| 210 | for further information. | ||
| 211 | |||
| 199 | # Custom templates | 212 | # Custom templates |
| 200 | 213 | ||
| 201 | You can override the default templates from `templates/` by putting replacements | 214 | You can override the default templates from `templates/` by putting replacements |
