From f193197e5a452cd6b7896083fe746fd18a6b7dca Mon Sep 17 00:00:00 2001
From: nd <git@notandy.de>
Date: Mon, 5 Apr 2021 14:06:35 +0200
Subject: [PATCH] add example uwsgi config to readme

---
 README.md | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/README.md b/README.md
index 63dcebd5..71a37bb5 100644
--- a/README.md
+++ b/README.md
@@ -36,6 +36,27 @@ Please note that the mocked LDAP functionality is very limited and many uffd fea
 
 Use uwsgi. Make sure to run `flask db upgrade` after every update!
 
+### example uwsgi config
+
+```
+[uwsgi]
+plugin = python3
+env = PYTHONIOENCODING=UTF-8
+env = LANG=en_GB.utf8
+env = TZ=Europe/Berlin
+manage-script-name = true
+chdir = /var/www/uffd
+module = uffd:create_app()
+
+uid = uffd
+gid = uffd
+
+vacuum = true
+die-on-term = true
+
+hook-pre-app = exec:FLASK_APP=uffd flask db upgrade
+```
+
 ## python style conventions
 
 tabs.
-- 
GitLab