Added /_ping method for EDGE to compute the connection performance
@@ -118,6 +118,17 @@ http {
# These routes are defined in the "location" blocks
include /etc/nginx/sites-enabled/*.loc.conf;
+ location /_ping {
+ access_log off;
+ add_header Content-Length 0;
+ add_header Content-Type text/plain;
+ add_header Access-Control-Allow-Headers *;
+ add_header Access-Control-Allow-Methods *;
+ add_header Access-Control-Allow-Origin ${CP_EDGE_FSBROWSER_CORS};
+ add_header Vary Origin;
+ return 200;
+ }
+
location /ssh {
default_type text/html;
access_by_lua_file /etc/nginx/validate_cookie_ssh.lua;
