Change default 443 port

Sometimes there is a need to change the port to which the agent sends its data.

For this you need to perform two steps:

  1. Change the port in the server settings.
sudo nano /etc/nginx/sites-available/ssl.staffcop

writing the required value in the string instead of the standard 443.

Restart the service.

sudo service staffcop restart; sudo service nginx restart
  1. Change the port in the agent settings.

This can be implemented by reinstalling the agent (the version to be installed should be at least equal to the version installed) or by changing the value in the registry.

ADD HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\TimeSvc3\ServiceConfiguration