By default, port 443 is used for communication between the server and the agent. To assign a new one, specify its number in the agent and server settings.
Changing the port in the server settings
To change the port number:
Open the web server configuration file:
sudo nano /etc/nginx/sites-available/ssl.ibatyr
Change the port number in the listen line: instead of the default 443, enter your own.
Restart ibatyr and nginx:
sudo service ibatyr restart; sudo service nginx restart
Changing the port in the agent settings
You can change the port in the agent settings:
when reinstalling the agent (the new version of the agent must be no lower than the installed version);
without reinstallation, using the registry entry:
ADD HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\TimeSvc3\ServiceConfiguration
Additional port for server control
If there is a need to assign an additional port to control the server:
Create a copy of the existing configuration file:
sudo cp /etc/nginx/sites-available/ssl.ibatyr /etc/nginx/sites-available/ssl.ibatyr2
Open a new configuration file:
sudo nano /etc/nginx/sites-available/ssl.ibatyr2
Comment out the first two lines of the configuration file:
# client_max_body_size # large_client_header_buffers
In the listen line, enter the new port number.
Create a symbolic link to the new configuration file:
sudo ln -s /etc/nginx/sites-available/ssl.ibatyr2 /etc/nginx/sites-enabled
Restart ibatyr and nginx:
sudo service ibatyr restart; sudo service nginx restart
After this, the server will listen on the specified ports.