# mysql only
DbType=mysql

#db username
DbUserName=fts3

#db password
DbPassword=ftsflaskpass

#For MySQL, it has to follow the format 'host/db' (i.e. "mysql-server.example.com/fts3db")
DbConnectString=localhost:3306/ftsflask

#List of authorized VOs, separated by ;
#Leave * to authorize any VO
AuthorizedVO=*

#List of authorized audiences for JWT authorization (separated by ;)
AuthorizedAudiences=https://wlcg.cern.ch/jwt/v1/any

#For each metadata size limit, if size_limit = 0, no limit checks are performed upon job submission
#Limit Job Metadata with specified Size Limit (default: 2048 bytes)
JobMetadataSizeLimit=2048
#Limit File Metadata with specified Size Limit (default: 4096 bytes)
FileMetadataSizeLimit=4096
#Limit Staging Metadata with specified Size Limit (default: 1024 bytes)
StagingMetadataSizeLimit=1024
#Limit Archive Metadata with specified Size Limit (default: 1024 bytes)
ArchiveMetadataSizeLimit=1024

#OpenID parameters
ValidateAccessTokenOffline=True
JWKCacheSeconds=86400
TokenRefreshDaemonIntervalInSeconds=600

[sqlalchemy]
pool_timeout=10
pool_size=10

[roles]
Public = vo:transfer;all:datamanagement
lcgadmin = all:config

[providers]
# The xdc provider information is automatically filled out when testing
#xdc=https://iam.extreme-datacloud.eu
#xdc_ClientId=
#xdc_ClientSecret=

# Logging configuration
[loggers]
keys = root, routes, fts3rest, sqlalchemy

[handlers]
keys = console, log_file

[formatters]
keys = generic

[logger_root]
level = INFO
handlers = log_file

[logger_routes]
level = INFO
handlers =
qualname = routes.middleware
# "level = DEBUG" logs the route matched and routing variables.

[logger_fts3rest]
level = DEBUG
handlers =
qualname = fts3rest

[logger_sqlalchemy]
level = WARN
handlers =
qualname = sqlalchemy.engine
# "level = INFO" logs SQL queries.
# "level = DEBUG" logs SQL queries and results.
# "level = WARN" logs neither.  (Recommended for production systems.)

[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic

[handler_log_file]
class = logging.FileHandler
args = ('/var/log/fts3rest/fts3rest.log', 'a')
level = NOTSET
formatter = generic

[formatter_generic]
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(module)s] %(message)s
datefmt = %H:%M:%S
