From 05d40216ee96649038f465ae2f28ac7ba28c5048 Mon Sep 17 00:00:00 2001 From: doobry Date: Thu, 24 Oct 2019 14:08:48 +0200 Subject: Add support for external config files (Fixes: #33) --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 202f307..a10f558 100644 --- a/README.md +++ b/README.md @@ -190,12 +190,25 @@ The `key` parameter is the key from a previously uploaded file. ``` # Docker + There are two Dockerfiles present in this repository. The file called `Dockerfile.development` is used for development and `Dockerfile.production` is used for production deployments. You can find the automated docker builds in the registry of this repository: https://0xacab.org/jvoisin/mat2-web/container_registry +# Configuration + +The default settings from `main.py` may be overridden by adding a `config.py` +file and add custom values for the relevant flask config variables. E.g.: + +``` +MAX_CONTENT_LENGTH = 32 * 1024 * 1024 # 32MB +``` + +See [Flask configuration docs](http://exploreflask.com/en/latest/configuration.html) +for further information. + # Custom templates You can override the default templates from `templates/` by putting replacements -- cgit v1.3