aboutsummaryrefslogtreecommitdiff
path: root/stackbin.wsgi.ini
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-02-13 21:47:21 -0500
committerB. Stack <bgstack15@gmail.com>2022-02-13 21:54:20 -0500
commit85df4b3dc87003ae738f2676a99b88a83f3ac05a (patch)
tree15b892a06b81451d83f73cf0f8822c9bf262c4af /stackbin.wsgi.ini
parentadd redirects after delete, and simplify css calls (diff)
downloadstackbin-85df4b3dc87003ae738f2676a99b88a83f3ac05a.tar.gz
stackbin-85df4b3dc87003ae738f2676a99b88a83f3ac05a.tar.bz2
stackbin-85df4b3dc87003ae738f2676a99b88a83f3ac05a.zip
add expiry, and wsgi usage to support that
The flask dev server seems incapable of using the @timer decorator, so we need the whole wsgi implementation, for which I've added a script. Arbitrary expiration options are available in the config file.
Diffstat (limited to 'stackbin.wsgi.ini')
-rw-r--r--stackbin.wsgi.ini14
1 files changed, 14 insertions, 0 deletions
diff --git a/stackbin.wsgi.ini b/stackbin.wsgi.ini
new file mode 100644
index 0000000..cac4511
--- /dev/null
+++ b/stackbin.wsgi.ini
@@ -0,0 +1,14 @@
+[uwsgi]
+plugins = logfile
+http-socket = 0.0.0.0:5000
+wsgi-file = pastebin.py
+callable = app
+touch-reload = pastebin.py
+touch-reload = config.cfg
+touch-reload = stackbin.wsgi.ini
+req-logger = file:log/req.log
+# to get strftime format fields, you need double percent signs
+logdate = "%%FT%%T"
+logger = file:log/stackbin.log
+# the init script uses a different pidfile owned by root.
+pidfile = stackbin.pid
bgstack15