Skip to content

Certificate location #1388

Answered by 255kb
jameshiscott asked this question in Help
May 16, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi, most file paths in Mockoon support both absolute paths and relative paths. If you use an absolute path, you will have to put the file in the same spot on all the machines. However, if you provide a relative path, it is automatically resolved from the data file you are loading. ("myfile.json").
In you example, you are loading a data file using a URL, so, the relative path trick will not work. I suggest that you first download this file using something like wget https://mygiturl/myfile.json, put the cert files in the same folder, and then run the CLI using docker run -d -p 3001:3001 mockoon/cli:latest -d ./myfile.json -p 3001.

And in your TLS setup, you use relative paths:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jameshiscott
Comment options

Answer selected by jameshiscott
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants