fix: datasource hardcoded + bundleName/bundleVersion
This commit is contained in:
+13
-14
@@ -13,33 +13,32 @@
|
||||
<cfset this.setclientcookies="No"/>
|
||||
|
||||
<cfset this.datasource = "baza"/>
|
||||
<cfset this.datasources["baza"] = {
|
||||
class: "org.postgresql.Driver",
|
||||
bundleName: "org.postgresql.jdbc",
|
||||
bundleVersion: "42.6.0",
|
||||
connectionString: "jdbc:postgresql://postgresqlk8s-master.418f9960-2eb7-4429-b2ec-ac64319d7268.svc.cluster.local:5432/baza",
|
||||
username: "super",
|
||||
password: "hoHdkA23yxlD9oMUlZ1bIbNyc6DE2mNJmyHMNkEpVD1F4suQs7O2lyN4t0qITyzt"
|
||||
}/>
|
||||
|
||||
<!--- REST API --->
|
||||
<cfset this.restEnabled = true/>
|
||||
<cfset this.restSettings = {skipCFCWithError: true}/>
|
||||
|
||||
<!--- Define the page request properties. --->
|
||||
<cfsetting
|
||||
requesttimeout="20"
|
||||
showdebugoutput="false"
|
||||
enablecfoutputonly="false"
|
||||
/>
|
||||
|
||||
<cffunction
|
||||
name="OnApplicationStart"
|
||||
access="public"
|
||||
returntype="boolean"
|
||||
output="false"
|
||||
hint="Fires when the application is first created.">
|
||||
<cfsetting requesttimeout="20" showdebugoutput="false" enablecfoutputonly="false"/>
|
||||
|
||||
<cffunction name="OnApplicationStart" access="public" returntype="boolean" output="false">
|
||||
<cfset this.datasources["baza"] = {
|
||||
class: "org.postgresql.Driver",
|
||||
bundleName: "org.postgresql.jdbc",
|
||||
bundleVersion: "42.6.0",
|
||||
connectionString: "jdbc:postgresql://postgresqlk8s-master.418f9960-2eb7-4429-b2ec-ac64319d7268.svc.cluster.local:5432/baza",
|
||||
username: "super",
|
||||
password: "hoHdkA23yxlD9oMUlZ1bIbNyc6DE2mNJmyHMNkEpVD1F4suQs7O2lyN4t0qITyzt"
|
||||
}/>
|
||||
|
||||
<cfreturn true />
|
||||
<cfreturn true/>
|
||||
</cffunction>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user