add api url rules to nginx config