Use the environment variables SCHEDULER_HTTP_PORT and SCHEDULER_HTTPS_PORT
- It is also possible to set the http and https port with command line options but we recommend to use environment variables
- For this create an instance script in which environment variables are set before the startscript is called.
- How to create and instance script and which environment variables can be set is described in JobScheduler Universal Agent - Running multiple instances
Indicating which network interfaces should listen to when using http
- The value of the environment variable
SCHEDULER_HTTP_PORT
of the instance script can have the formSCHEDULER_HTTP_PORT=[ip address or hostname:]port
- If only a port is specified then the JobScheduler Agent listens to all available network interfaces.
- It is the same like
SCHEDULER_HTTP_PORT=0.0.0.0:port
. - If a hostname or ip address is specified in addition then it indicates which network interfaces the JobScheduler Agent should listen to.
Indicating which network interfaces should listen to when using https
- The value of the environment variable
SCHEDULER_HTTPS_PORT
of the instance script can have the formSCHEDULER_HTTPS_PORT=[ip address or hostname:]port
- If only a port is specified then the JobScheduler Agent listens to all available network interfaces.
- It is the same like
SCHEDULER_HTTPS_PORT=0.0.0.0:port
. - If a hostname or ip address is specified in addition then it indicates which network interfaces the JobScheduler Agent should listen to.
Requirements
- A http port setting is required for the JobScheduler Agent startscript.
It is not possible to use https only but you can bind "localhost" to the http port.
SCHEDULER_HTTP_PORT=localhost:4445