-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmock-config.py
More file actions
28 lines (20 loc) · 839 Bytes
/
Copy pathmock-config.py
File metadata and controls
28 lines (20 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
"""Mock Flask configuration template for public repositories.
Copy this file to config.py for local development and set secure values.
Do not commit real secrets in config.py.
"""
import os
SECRET_KEY = os.getenv("SECRET_KEY", "CHANGE_ME_FOR_LOCAL_DEV")
# Grabs the folder where the script runs.
basedir = os.path.abspath(os.path.dirname(__file__))
# Enable debug mode in local/dev only.
DEBUG = os.getenv("DEBUG", "True").lower() == "true"
# Connect to the database
SQLALCHEMY_DATABASE_URI = os.getenv(
"SQLALCHEMY_DATABASE_URI",
"sqlite:///instance/nodelock.db",
)
# Turn off the Flask-SQLAlchemy event system and warning
SQLALCHEMY_TRACK_MODIFICATIONS = False
SESSION_PERMANENT = False # Sessions expire when the browser is closed
SESSION_TYPE = "filesystem" # Store session data in files
SCHEDULER_API_ENABLED = True