WireMock-Net / WireMock.Net

WireMock.Net is a flexible product for stubbing and mocking web HTTP responses using advanced request matching and response templating. Based on the functionality from http://WireMock.org, but extended with more functionality.
Apache License 2.0
1.36k stars 200 forks source link

How to use environment variable #953

Closed marspox closed 1 year ago

marspox commented 1 year ago

Hi there, I have created Azure Web App Container I have added the environment variable WIREMOCKSERVERSETTINGSALLOWPARTIALMAPPING then after restarting the app and getting the settings by calling /admin/settings AllowPartialMapping was still false. How the environment variable should look to set proxy URL etc?

image

image

StefH commented 1 year ago

@marspox Currently, the configuration can only be set using startup arguments. I'll take a look if environment parsing can be added.

StefH commented 1 year ago

@marspox

A preview version is available: 1.5.28-ci-17500

https://github.com/WireMock-Net/WireMock.Net/wiki/MyGet-preview-versions

StefH commented 1 year ago

Will be included in next Docker release.