From 8cc65e549e35ad9c4172e6c9e0529b9511936d74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Thu, 18 Jun 2026 12:20:05 +0400 Subject: [PATCH] =?UTF-8?q?fix:=20Application.cfc=20=D0=B8=D0=B7=20=D1=88?= =?UTF-8?q?=D0=B0=D0=B1=D0=BB=D0=BE=D0=BD=D0=B0=20+=20getDS()=20=D0=B8?= =?UTF-8?q?=D0=B7=20env?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application.cfc | 163 +++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 142 insertions(+), 21 deletions(-) diff --git a/Application.cfc b/Application.cfc index a1799d0..d51ce2f 100644 --- a/Application.cfc +++ b/Application.cfc @@ -1,23 +1,144 @@ -component { - this.name = "contractor"; - 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" - }; - this.defaultDatasource = "baza"; + + - // REST - this.restEnabled = true; - this.restSettings = { - skipCFCWithError: true - }; + + + + + + + + + + + + + - public boolean function onRequestStart(string targetPage) { - if (structKeyExists(url, "reload")) { - applicationStop(); - } - return true; - } -} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ), + DE( "https://" ), + DE( "http://" ) + ) & + cgi.http_host & + reReplace( + getDirectoryFromPath( arguments.template ), "([^\\/]+[\\/]){#local.requestDepth#}$", + "", + "one" + ) + ) /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +