Proxy
The following shows the “Proxy” tab under System Settings > Advanced. It is used for defining whether AhsayCBS should use a proxy to gain access to the Internet.

Two types of proxy, HTTP/HTTPS and SOCKS 4/5, are supported. You can use the “Proxy Host” and “Port” entries to define the location of your proxy server.
If the proxy server you are using requires user authentication, please use the “Proxy Username” and “Proxy Password” entries to set the username/password for your proxy server.
For some AhsayCBS using proxy connection, extra configuration is required to allow websocket communication. Websocket is used to communicate with AhsayOBM/AhsayACB and also the web browser for AhsayCBS in the following areas:
- 2FA Push Notification
- Proxmox VE setup starting with version 10.3.0.0
- Remote control of client run jobs starting with version 10.3.2.0
Use nginx or Apache to allow the "Upgrade" HTTP header by configuring the endpoints pnsws and cbsws.
For nginx
location /pnsws {
...
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
}
location /cbsws {
...
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
}
For Apache
RewriteEngine On
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule ^/(pnsws|cbsws)/(.*)$ wss://{host port to be updated}/$1/$2 [P,QSA,NC,L]