From f62d8888dd5338c2262b2ef797f5673505868e6e Mon Sep 17 00:00:00 2001 From: Lev Kokotov Date: Mon, 11 Sep 2023 17:59:49 -0700 Subject: [PATCH 1/2] config --- config/blazer.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/config/blazer.yml b/config/blazer.yml index 10dfa58..b7f93b2 100644 --- a/config/blazer.yml +++ b/config/blazer.yml @@ -3,10 +3,12 @@ data_sources: main: url: <%= ENV["BLAZER_DATABASE_URL"] || ENV["DATABASE_URL"] %> + postgresml: + url: <%= ENV["POSTGRESML_DATABASE_URL"] %> # statement timeout, in seconds # none by default - # timeout: 15 + timeout: 15 # caching settings # can greatly improve speed @@ -21,19 +23,19 @@ data_sources: # true by default # use_transaction: false - smart_variables: + # smart_variables: # zone_id: "SELECT id, name FROM zones ORDER BY name ASC" # period: ["day", "week", "month"] # status: {0: "Active", 1: "Archived"} - linked_columns: + # linked_columns: # user_id: "/admin/users/{value}" - smart_columns: + # smart_columns: # user_id: "SELECT id, name FROM users WHERE id IN {value}" # create audits -audit: true +audit: false # change the time zone # time_zone: "Pacific Time (US & Canada)" From 783cd6e3fe2337829f183d3d1682d4785cd6f680 Mon Sep 17 00:00:00 2001 From: Montana Low Date: Thu, 29 Aug 2024 09:52:51 -0700 Subject: [PATCH 2/2] Update application.rb --- config/application.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config/application.rb b/config/application.rb index 2d4ad2c..c86e651 100644 --- a/config/application.rb +++ b/config/application.rb @@ -41,6 +41,7 @@ class Application < Rails::Application config.secret_key_base = ENV["SECRET_KEY_BASE"] || SecureRandom.hex(30) config.active_record.legacy_connection_handling = false + config.action_controller.default_url_options = { host: ENV["BLAZER_HOST"] || 'blazer.postgresml.net' } config.public_file_server.enabled = ENV["RAILS_SERVE_STATIC_FILES"] != "disabled" if ENV["RAILS_LOG_TO_STDOUT"] != "disabled" pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy