From 0556ebe21c3143be2a3e32c4f49e127044bdd47c Mon Sep 17 00:00:00 2001 From: B Stack Date: Tue, 15 Feb 2022 15:12:32 -0500 Subject: pw-protect /admin endpoint Use a hardcoded password from the config file. --- stackbin.wsgi.ini.example | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'stackbin.wsgi.ini.example') diff --git a/stackbin.wsgi.ini.example b/stackbin.wsgi.ini.example index bb30c20..d4cb995 100644 --- a/stackbin.wsgi.ini.example +++ b/stackbin.wsgi.ini.example @@ -9,7 +9,12 @@ callable = app touch-reload = /usr/libexec/stackbin/stackbin.py touch-reload = /etc/stackbin.conf touch-reload = /etc/stackbin.wsgi.ini -# the template files are not necessary, because flask always loads it from disk for each request +touch-reload = /usr/share/stackbin/templates/admin.html +touch-reload = /usr/share/stackbin/templates/layout.html +touch-reload = /usr/share/stackbin/templates/login_form.html +touch-reload = /usr/share/stackbin/templates/new_paste.html +touch-reload = /usr/share/stackbin/templates/_pagination.html +touch-reload = /usr/share/stackbin/templates/show_paste.html req-logger = file:/var/log/stackbin/req.log # to get strftime format fields, you need double percent signs logdate = "%%FT%%T" -- cgit