M
M
Michail2021-05-29 23:44:58
Nginx
Michail, 2021-05-29 23:44:58

Why is it wrong for swagger to build a path through a proxy?

There is an application on the nest with a swager. It's running on the cloud. It is accessed via ngix proxy
Example - domain/api/devices

location /api {
rewrite ^/api/(.*)$ /$1 break;
proxy_pass ip

Svager incorrectly builds the path - domain/devices, skips api, in theory it is clear why. How can it be solved?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question