change nginx config for api