Unfortunately, although the webpagetest documentation for installation of private instances here https://docs.webpagetest.org/private-instances/ tells you how to install the server and the client, the information on how to link the two is missing, other than a dead link.
Does anyone know how to do it?
The server has a locations.ini file which looks like this:
[locations]
1=Test_loc
default=Test_loc
; These are the top-level locations that are listed in the location dropdown
; Each one points to one or more browser configurations
[Test_loc]
1=Test
label=Test Location
; Tese are the browser-specific configurations that match the configurations
; defined in the top-level locations. Each one of these MUST match the location
; name configured on the test agent (urlblast.ini or wptdriver.ini)
[Test]
browser=Chrome,Firefox
label="Test Location"
There is nowhere to add the IP of the agent, or any kind of authentication.
When you install the agent using the auto install script, you supply some basic info like this:
WPT_SERVER="something.yourdomain.net" WPT_LOCATION="Azure Europe North" WPT_KEY="somekey" DISABLE_IPV6=y bash <(curl -s https://raw.githubusercontent.com/WPO-Foundation/wptagent-install/master/debian.sh
The params are not undocumented anywhere obvious, but we can assume that:
- WPT_Server is the URL of your server instance (which is also localhost in my case as the agent is on the same server as the master)
- PTP_LOCATION this is just a text string you make up? It has no obvious use.
- WPT_KEY, this is a big mystery, as nothing seems to use this.
Does anyone have any idea how to configure the master to know about the slave (This doesnt seem to be in locations.ini as nothing in this file relates to the agent, it's just labels), and how to configure the agent to "see" the master?
I took a wild guess at the locations.ini file for my agent of this:
[locations]
1=Azure Europe North_loc
default=Azure Europe North_loc
; These are the top-level locations that are listed in the location dropdown
; Each one points to one or more browser configurations
[Azure Europe North_loc]
1=Azure Europe North
label=Test Location
; Tese are the browser-specific configurations that match the configurations
; defined in the top-level locations. Each one of these MUST match the location
; name configured on the test agent (urlblast.ini or wptdriver.ini)
[Azure Europe North]
browser=Chrome,Firefox
label="Azure Europe North"
key=somekey
This didnt work unfortunately (no agents listed on the server)
Also, it is undocumented which ports you need to open between agent and server. Anyone know?
There seems to be no way to tell the agent where the server is, or what ports its on, and no way to tell the server what the IP or dns name is of the agent.