Reputation: 155
I want to run a micro-payara on the localhost interface only. How can I manage that?
I didn't find any command line options: https://payara.gitbooks.io/payara-server/documentation/payara-micro/appendices/cmd-line-opts.html
Upvotes: 1
Views: 443
Reputation: 7760
You're correct, there's no command line option to specify the address on command line. You have to go a bit deeper and specify a command file with the --prebootcommandfile
option.
The command file (let's call it commands.txt
) should contain the following line:
set configs.config.server-config.network-config.network-listeners.network-listener.http-listener.address=localhost
The command-line to apply that file is:
java -jar payara-micro.jar --prebootcommandfile commands.txt
Upvotes: 2