pact-foundation / pact-stub-server

Standalone pact stub server
MIT License
75 stars 19 forks source link

How to run under HTTPS? #58

Open staff0rd opened 1 year ago

staff0rd commented 1 year ago

https://github.com/pact-foundation/pact-stub-server/issues/27 references running the server in HTTPS:

It can run in Docker and use HTTPS.

How can I configure that? There appears to be no reference to HTTPS or certs in the cli options

rholshausen commented 1 year ago

It can run in Docker and use HTTPS.

It can access a Pact Broker using HTTPS, and has an option --insecure-tls to disable host and certificate validation when the Pact Broker is using self-signed certs.

If you want the stub server to use HTTPS, you can run nginx in front of it as a reverse proxy.