Need help in converting nginx to ha proxy


#1

I need help to convert following nginx configuration
host1 = http://localhost:8088 in code

server {
listen 9001;
server_name localhost;
location /analytics/ {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Script-Name /analytics;
proxy_pass host1;
proxy_redirect http://localhost/ host1/;
#YOUR_SERVER_NAME is localhost if both nginx and superset run on same server
}
location ~ ^/(static|superset|sqllab|savedqueryview|druid|tablemodelview|databaseasync|dashboardmodelview|slicemodelview) {
try_files $uri /analytics/$uri /analytics/$uri?query_string @rules; } location @rules { rewrite ^(.*) /analytics$1 permanent;
}
}

Im trying to access the application running at 8080 via 9001/analytics