forked from claw/flaskpaste
config: fix ruff formatting
This commit is contained in:
@@ -98,9 +98,7 @@ class Config:
|
|||||||
# so all gunicorn workers use the same HMAC key.
|
# so all gunicorn workers use the same HMAC key.
|
||||||
_db_default = Path(__file__).parent.parent / "data" / "pastes.db"
|
_db_default = Path(__file__).parent.parent / "data" / "pastes.db"
|
||||||
_data_dir = Path(os.environ.get("FLASKPASTE_DB", _db_default)).parent
|
_data_dir = Path(os.environ.get("FLASKPASTE_DB", _db_default)).parent
|
||||||
POW_SECRET = (
|
POW_SECRET = os.environ.get("FLASKPASTE_POW_SECRET", "") or _get_pow_secret(_data_dir)
|
||||||
os.environ.get("FLASKPASTE_POW_SECRET", "") or _get_pow_secret(_data_dir)
|
|
||||||
)
|
|
||||||
# Registration PoW difficulty (higher than paste creation for security)
|
# Registration PoW difficulty (higher than paste creation for security)
|
||||||
REGISTER_POW_DIFFICULTY = int(os.environ.get("FLASKPASTE_REGISTER_POW", "24"))
|
REGISTER_POW_DIFFICULTY = int(os.environ.get("FLASKPASTE_REGISTER_POW", "24"))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user