From 1ae7e7db56b64570df6aa0446dab88852254d0b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Thu, 18 Jun 2026 14:00:24 +0400 Subject: [PATCH] =?UTF-8?q?fix:=20Application.cfc=20=D0=BD=D0=B0=20cfset,?= =?UTF-8?q?=20=D0=B1=D0=B5=D0=B7=20=D1=81=D0=BA=D1=80=D0=B8=D0=BF=D1=82?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application.cfc | 55 ++++++++++++++++++++++++++----------------------- 1 file changed, 29 insertions(+), 26 deletions(-) diff --git a/Application.cfc b/Application.cfc index caa4626..74cf4fa 100644 --- a/Application.cfc +++ b/Application.cfc @@ -1,34 +1,37 @@ -component { - this.name = "contractor"; - this.applicationTimeout = createTimeSpan(0, 0, 3, 0); - this.sessionmanagement = true; - this.datasource = "baza"; - this.restEnabled = true; - this.restSettings = {skipCFCWithError: true}; + - // defaults - var dbHost = "postgresqlk8s-master.418f9960-2eb7-4429-b2ec-ac64319d7268.svc.cluster.local"; - var dbPort = "5432"; - var dbName = "baza"; + + + + + + - // из env или дефолт - var sys = createObject("java", "java.lang.System"); - var user = sys.getenv("DB_USER"); - if (isNull(user) || !len(user)) user = "super"; - var pass = sys.getenv("DB_PASS"); - if (isNull(pass) || !len(pass)) pass = "hoHdkA23yxlD9oMUlZ1bIbNyc6DE2mNJmyHMNkEpVD1F4suQs7O2lyN4t0qITyzt"; + - this.datasources["baza"] = { + + + + + + + + + + + - function onRequestStart(targetPage) { - if (structKeyExists(url, "reload")) applicationStop(); - return true; - } -} + + + + + + +