location /api/ {
proxy_pass http://ip_адрес_сервера:8082/
sub_filter "http://$server_name" "http://$server_name/api/";
sub_filter 'src="/' 'src="/api/';
sub_filter 'action="/' 'action="/api/';
sub_filter 'href="/' 'href="/api/';
sub_filter_once off;
}
location /api/ {
proxy_pass http://ip_адрес_сервера:8082/
sub_filter "http://$server_name" "http://$server_name/api/";
sub_filter_once off;
}
/export