aboutsummaryrefslogtreecommitdiff
path: root/config.cfg.example
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-02-13 22:11:38 -0500
committerB. Stack <bgstack15@gmail.com>2022-02-13 22:11:38 -0500
commit39eb97cbceeb332c21eaeeb4843b58b34667cfb2 (patch)
treeeb11eee877bc42163ce3e17c8fcd99cf72eb1d69 /config.cfg.example
parentadd expiry, and wsgi usage to support that (diff)
downloadstackbin-39eb97cbceeb332c21eaeeb4843b58b34667cfb2.tar.gz
stackbin-39eb97cbceeb332c21eaeeb4843b58b34667cfb2.tar.bz2
stackbin-39eb97cbceeb332c21eaeeb4843b58b34667cfb2.zip
refactor filenames and improve docs
Diffstat (limited to 'config.cfg.example')
-rw-r--r--config.cfg.example17
1 files changed, 17 insertions, 0 deletions
diff --git a/config.cfg.example b/config.cfg.example
new file mode 100644
index 0000000..23fb072
--- /dev/null
+++ b/config.cfg.example
@@ -0,0 +1,17 @@
+DEBUG=False
+SQLALCHEMY_DATABASE_URI='sqlite:///pastebin.db'
+SECRET_KEY='development-key'
+SALT='jackson'
+DELETESALT='differentstring'
+APPNAME='stackbin'
+# LOOP_DELAY in seconds is how many seconds between running the expiration cleanup task
+LOOP_DELAY = 5 * 3
+
+# Disable this variable entirely, to disable any choices for expiration
+# Any very simple expression for relative time can be used here. This will be processed by pyparsedate.
+EXPIRATION_OPTIONS = [
+ "never",
+ "1 day",
+ "1 hour",
+ "15 minutes"
+]
bgstack15