# support db type: mysql, postgresql
DB_TYPE=mysql
# Maximum number of connections to the database connection pool
DATABASE_MAX_CONNECTIONS=100
# Timeout for connecting to the database
DATABASE_TIMEOUT=30
# service request address and port
ATTESTATION_ADDRESS=0.0.0.0:8080
# Scheduled Task Connection Address and port
SCHEDULE_TASK_ADDRESS=0.0.0.0:8081
LD_LIBRARY_PATH=/usr/local/lib

# Log output directory
LOG_OUTPUT_DIR=/etc/attestation_server/ra-log

DB_NAME=RA
DB_USER=abcd
DB_PASSWORD=abcd
DB_ROOT_PASSWORD=abcd
REDIS_PASSWORD=

HTTPS_ADDRESS=127.0.0.1:8443
# 1 is ON; 0 is OFF
HTTPS_SWITCH=1
SERVER_KEY_PATH=/etc/attestation_server/certs/server.key
SERVER_CERT_PATH=/etc/attestation_server/certs/server.crt
CA_CERT_PATH=/etc/attestation_server/certs/ca.crt

# Security Configuration
MAX_JSON_SIZE=104857600
# Limit the number of requests per second for the management interface
REQUESTS_PER_SECOND=10
BURST_SIZE=5
# Limit the number of requests per second for the challenge interface
CHALLENGE_REQUESTS_PER_SECOND=50
CHALLENGE_BURST_SIZE=10

# PostgreSQL configuration
POSTGRESQL_DATABASE_URL=postgres://postgres:1234@localhost:5432/RA

# MySQL configuration
MYSQL_DATABASE_URL=mysql://abcd:abcd@127.0.0.1:3306/RA

# Connection redis configuration
REDIS_URL=redis://127.0.0.1/

# MQ service
MQ_HOST=127.0.0.1:29092

ENABLE_APIKEY=false