fix: datasource hardcode + getDS fallback

This commit is contained in:
2026-06-18 12:39:17 +04:00
parent 114c652631
commit bfbc206a63
+7 -1
View File
@@ -13,7 +13,13 @@
<cfset this.setclientcookies="No"/>
<cfset this.datasource = "baza"/><!--- default datasource name --->
<cfset getDS(this.datasource,"baza")/><!--- datasource name, environment variable prefix without "_" --->
<cfset this.datasources["baza"] = {
class: "org.postgresql.Driver",
connectionString: "jdbc:postgresql://postgresqlk8s-master.418f9960-2eb7-4429-b2ec-ac64319d7268.svc.cluster.local:5432/baza",
username: "super",
password: "hoHdkA23yxlD9oMUlZ1bIbNyc6DE2mNJmyHMNkEpVD1F4suQs7O2lyN4t0qITyzt"
}/>
<cfset getDS(this.datasource,"baza")/><!--- тоже попробуем из env --->
<!--- REST API --->
<cfset this.restEnabled = true/>