Paul Ryan
04/11/2023, 10:50 PMYousaf Nabi (pactflow.io)
Paul Ryan
04/19/2023, 8:40 PM*"*HTTP_X_FORWARDED_SCHEME*"*=>*"*https*"*,
*"*HTTP_X_FORWARDED_HOST*"*=>*"*<http://contract-testing-service.chm.life|contract-testing-service.chm.life>*"*,
*"*HTTP_X_FORWARDED_PORT*"*=>*"*443*"*,
*"*HTTP_X_FORWARDED_SSL*"*=>*"*on*"*,
We've mounted and configured pact-broker as such:
app = PactBroker::App.new do |config|
binding.pry
config.port = "8000"
config.log_stream = :stdout
config.log_level = :debug
# config.log_level = :info
config.basic_auth_enabled = false # set to true to enable the user below
config.basic_auth_username = ENV["BASIC_AUTH_USERNAME"]
config.basic_auth_password = ENV["BASIC_AUTH_PASSWORD"]
config.basic_auth_read_only_username = ENV["AUTH_READ_ONLY_USERNAME"]
config.basic_auth_read_only_password = ENV["AUTH_READ_ONLY_PASSWORD"]
config.database_url = "postgres://#{ENV["POSTGRES_USER"]}:#{ENV["POSTGRES_PASSWORD"]}@#{ENV["POSTGRES_HOST"]}/#{ENV["POSTGRES_NAME"]}"
config.base_url = "<http://contract-testing-service/pact>"
end
Rails.application.routes.draw do
mount app => "/pact"
get :ping, to: "ping#ping", defaults: { format: :json }
end
It seems like everything is working well, and the headers appear to be present with all requests, but the application still seems to be using the base_url default for the UI.Paul Ryan
04/20/2023, 7:47 PMPaul Ryan
04/20/2023, 9:29 PMPaul Ryan
04/20/2023, 10:03 PMMatt (pactflow.io / pact-js / pact-go)
Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)