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" + ) + ) /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +