location для swagger в nginx.conf

This commit is contained in:
Olga Nemt 2023-11-10 10:05:01 +05:00
parent a24a6da9ef
commit 3fc2184f4c

View File

@ -58,6 +58,16 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /swagger/ {
proxy_pass http://127.0.0.1:5000/swagger/;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /favicon.ico {
alias /home/asb/web-content/images/favicon.ico;
add_header Cache-Control "public";