# This is the config file for the pegasus service. Save a copy of it in
# one of the following locations:
#
#   1. $PWD/service_config.py
#   2. ~/.pegasus/service_config.py
#   3. /etc/pegasus/service_config.py
#
# The first file found is the one that will be used.
#
import os

# The secret key used by Flask to encrypt session keys
SECRET_KEY = os.urandom(24)

# The URI of the database
#SQLALCHEMY_DATABASE_URI = "mysql://pegasus:secret@127.0.0.1:3306/pegasus_service"
SQLALCHEMY_DATABASE_URI = 'sqlite:///%s/.pegasus/workflow.db' % os.getenv('HOME')



# This is the config file for the pegasus service. Save a copy of it in
# one of the following locations:
#
#   1. $PWD/service_config.py
#   2. ~/.pegasus/service_config.py
#   3. /etc/pegasus/service_config.py
#
# The first file found is the one that will be used.
#
import os

# The secret key used by Flask to encrypt session keys
SECRET_KEY = os.urandom(24)

# The URI of the database
#SQLALCHEMY_DATABASE_URI = "mysql://pegasus:secret@127.0.0.1:3306/pegasus_service"
SQLALCHEMY_DATABASE_URI = 'sqlite:///%s/.pegasus/workflow.db' % os.getenv('HOME')

# Set to True to log SQL queries
#SQLALCHEMY_ECHO = False

# Set to change the SQLAlchemy connection pool size
#SQLALCHEMY_POOL_SIZE = 5

# Set to change the connection timeout (in seconds)
#SQLALCHEMY_POOL_TIMEOUT = 10

# Set to change how long connections remain before being recycled (in seconds)
# Default is 2 hours for MySQL
#SQLALCHEMY_POOL_RECYCLE = 2 * 60 * 60


Update configuration options for Flask-SQLAlchemy