diff --git a/mdproxy.ini b/mdproxy.ini
new file mode 100644
index 0000000000000000000000000000000000000000..17694498e1b932d9f673283a4eeb9df90472d322
--- /dev/null
+++ b/mdproxy.ini
@@ -0,0 +1,6 @@
+[uwsgi]
+http = :5002
+wsgi-file = mdproxy.py
+single-interpreter = true
+enable-threads = true
+master = true
diff --git a/mdproxy.py b/mdproxy.py
index a8f1e93e55167fc8e2223cc895e6219dfd864d5d..ef3994764c515a604de5b6c4928f56c217fafa43 100755
--- a/mdproxy.py
+++ b/mdproxy.py
@@ -153,3 +153,5 @@ def serve_one(realm, eid):
 
 if __name__ == "__main__":
     app.run(host='127.0.0.1', port=5002, debug=False)
+
+application = app
diff --git a/mdsigner.ini b/mdsigner.ini
new file mode 100644
index 0000000000000000000000000000000000000000..4117337549f4e97f43de97dcb351e7e6ed359f4e
--- /dev/null
+++ b/mdsigner.ini
@@ -0,0 +1,6 @@
+[uwsgi]
+http = :5001
+wsgi-file = mdsigner.py
+single-interpreter = true
+enable-threads = true
+master = true
diff --git a/mdsigner.py b/mdsigner.py
index 11b06149738ca91d25eb8c8c8472f6addcec2811..19842d4ab10b5afec766e4c20a0dc86850b97a7c 100755
--- a/mdsigner.py
+++ b/mdsigner.py
@@ -74,3 +74,5 @@ for realm, values in config.items():
 
 if __name__ == "__main__":
     app.run(host='127.0.0.1', port=5001, debug=False)
+
+application = app
diff --git a/requirements.txt b/requirements.txt
index 66509312ed8c807ccafea563560ecea13e873748..161297d7a9ec96ea6867effc02e914395a750545 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -9,3 +9,4 @@ pyyaml
 pyinotify
 pyXMLSecurity
 PyKCS11
+uwsgi