Browse Source

Split bragi into local/private and remote/public URL

tags/0.3.6^2
Bèr Kessels 1 month ago
parent
commit
e2df436c0c
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      app/projections/base_query.rb
  2. 1
    1
      lib/app.rb

+ 1
- 1
app/projections/base_query.rb View File

@@ -11,7 +11,7 @@ module Hours
include Pagy::Backend

def self.build
faraday = Faraday.new(url: ENV['BRAGI_URL']) do |conn|
faraday = Faraday.new(url: ENV['BRAGI_PRIVATE_URL']) do |conn|
conn.response :raise_error
conn.adapter Faraday.default_adapter
end

+ 1
- 1
lib/app.rb View File

@@ -67,7 +67,7 @@ module Hours
# Base URL where to find autocomplete server
helpers do
def bragi_url
ENV['BRAGI_URL']
ENV['BRAGI_PUBLIC_URL']
end
end


Loading…
Cancel
Save