Hello together, I am posting here, since I invest...
# help
a
Hello together, I am posting here, since I invested now 3 hours in reading the docu and stackoverflow without being successful. ChatGPT just delivers nonsense answers or at least not 100% working stuff. Situation: I am running wiremock as a standalone service from a jar file in a kubernetes / docker environment. Problem: Out of reasons I don't want to access the admin api over
./__admin
but over the url
./pathprefix/__admin
. How can I achieve this? Is there a setting option like
adminApiConfig": { "urlPath": "/pathprefix }"
or similar as ChatGPT suggests? If not, is this possible in general? Follow-up problem: If there is such a thing, where can I specify it? I was looking for something like a
config.json
file or something similar where I can specify default options like ports or similar wiremock should read and use on start up. Unfortunately I cannot find an example for such a config file or smth similar by searching the documentation or the internet. I know that for similar applications such things exist. Can you help me? Thank you in advance! 🙏
l
I don't think there is a way to configure the admin url base path so this is not exposed via any of the config options
a
Mh okay. too bad. How can I set config options in general?
l
WireMock standalone has a number of command line options that you can set - https://wiremock.org/docs/standalone/java-jar/#command-line-options Or, starting from
3.2.0-2
, the Docker image supports passing command line arguments standalone version as a environment variable - https://wiremock.org/docs/standalone/docker/#passing-command-line-arguments-as-environment-variable