aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-02-15 17:01:56 -0500
committerB. Stack <bgstack15@gmail.com>2022-02-15 17:01:56 -0500
commit6bcabded398853cc6aa3e8acbada34f3238cc5dc (patch)
tree83e164c8f983c3bdee7ebdf9c5aed1cebb8ddcf9
parentinstall this new auth.py (diff)
downloadstackbin-6bcabded398853cc6aa3e8acbada34f3238cc5dc.tar.gz
stackbin-6bcabded398853cc6aa3e8acbada34f3238cc5dc.tar.bz2
stackbin-6bcabded398853cc6aa3e8acbada34f3238cc5dc.zip
add libexec path to PYTHONPATH
-rw-r--r--stackbin.conf.example4
-rw-r--r--[-rwxr-xr-x]stackbin.py6
2 files changed, 8 insertions, 2 deletions
diff --git a/stackbin.conf.example b/stackbin.conf.example
index 0bb131d..481a448 100644
--- a/stackbin.conf.example
+++ b/stackbin.conf.example
@@ -19,3 +19,7 @@ EXPIRATION_OPTIONS = [
TEMPLATE_FOLDER = "/usr/share/stackbin/templates"
STATIC_FOLDER = "/usr/share/stackbin/static"
+
+# If you turn these off, the admin panel is entirely disabled.
+ADMIN_USERNAME = 'admin'
+ADMIN_PASSWORD = 'fluffycat10'
diff --git a/stackbin.py b/stackbin.py
index 56380e6..9d86338 100755..100644
--- a/stackbin.py
+++ b/stackbin.py
@@ -24,8 +24,7 @@ from flask import Blueprint, Flask, Response, request, url_for, redirect, g, ren
from flask_sqlalchemy import SQLAlchemy
from werkzeug.middleware.proxy_fix import ProxyFix
from pytimeparse.timeparse import timeparse # python3-pytimeparse
-import os
-from stackbin_auth import auth, requires_session
+import os, sys
# uwsgidecorators load will fail when using initdb.py but is also not necessary
try:
from uwsgidecorators import timer # python3-uwsgidecorators
@@ -33,6 +32,9 @@ except:
print("Warning! Without uwsgidecorators, the cleanup timer cannot run.")
import time
+sys.path.append('/usr/libexec/stackbin')
+from stackbin_auth import auth, requires_session
+
from sqlalchemy import types
from sqlalchemy.dialects.mysql.base import MSBinary
from sqlalchemy.schema import Column
bgstack15