# Data Discovery Manager Database Settings.
# Author Paul Woods
# Copyright (C)  SecureEnvoy Ltd 2023
# File must follow a format that is recognised by the class java.util.Properties.


#                            --------- README --------

# By default the manager uses an embedded database. This is normally the fastest solution.
# You can connect to an external db by setting up a connection below. Please note that any existing data will not be migrated - including logins.

# Create an empty database called e.g. geolangdatadiscovery

# Enter the URL to the empty database, as well as the username and password used to connect. 
# We also need the driver class name, see table below for examples,
# After editing this file, restart the server for the settings to take affect.
# Once these settings have been read, the password field in this file will be replaced by *****
# To revert back to the embedded db, just comment out any of the settings, or just delete this file ( a new template file will be created at restart )

# PLEASE NOTE  
# As well as specifying the connection strings in this file, you might have to place the correct JDBC driver in the installation files\lib\db folder
# e.g at C:\Users\<USER>\AppData\Local\DataDiscoveryManager\files\lib\db 
# The Postgres and SQL Server drivers are already built into the manager.

#Examples ( uncomment and fill in details )

#user=
#pwd=
#url=
#classname=


#e.g. for POSTGRES
#user=postgres
#pwd=somepassword
#url=jdbc:postgresql://localhost:5432/geolangdatadiscovery
#classname=org.postgresql.Driver


#e.g. for Microsoft SQL Server (add integratedSecurity=true; if you are using windows authentication )
#user=sa
#pwd=somepassword
#url=jdbc:sqlserver://localhost;databaseName=geolangdatadiscovery;sendStringParametersAsUnicode=false;encrypt=true;trustServerCertificate=true;
#classname=com.microsoft.sqlserver.jdbc.SQLServerDriver


# settings to read database password from csm
#CSM_AUTH_ENDPOINT=<path to CSM login rest endpoint>
#CSM_ROLE_NAME=<role for secret fetching>
#CSM_SECRET_URL =<where to fetch the secret from>
#IFE_CSM_SECRETS_ROLE_ARN=<where to fetch the named role>
#CSM_ENVIRONMENT=<any aws environment string>

