Hello, I am working with a dev team to utilize pac...
# pact-broker
i
Hello, I am working with a dev team to utilize pact broker. I do not know much about he it will be used but I am part of the infra team to help create the underlying infra to host it? at the moment, we have pact-broker running in an azure container instance with a back end postgres db. All load fine. I have two issue. The instance being hosted in azure container instance is accessible via http and not https. it is currently publicly accessible because difference environments will call into it. (cant be on the same network so cant run container instance on a private network. does anyone know how to secure the url/ip using azure container intance the other thing I have tried is to run pact-broker in an azure app service. I built it, linked to the docker image (using the container setting in the config. and added the same environment variables. I can not seem to get it working. has anyone successfully got this working with an azure app service and the postgres db. please let me know if there are any docs out there to achieve these.
m
I think you’re looking for Azure specific advice, we don’t have any guide for that but if you do figure things out, we’d appreciate a PR to our docs to help others.
The instance being hosted in azure container instance is accessible via http and not https. it is currently publicly accessible because difference environments will call into it. (cant be on the same network so cant run container instance on a private network.
This doc might be helpful when you do get it running. Often times the SSL is terminated at a load balancer and the app isn’t aware it’s running on
https
. These headers/configs might be useful
i
@Matt (pactflow.io / pact-js / pact-go) I was able to get the pact broker service running in an app service running in Azure. I am happy to update the docs but I do not have a clue where to do this. can you link me/provide instructions?
m
fantastic!
i
@Matt (pactflow.io / pact-js / pact-go) PR - https://github.com/pact-foundation/docs.pact.io/pull/349