forked from ddrilling/AsbCloudServer
location для swagger в nginx.conf
This commit is contained in:
parent
a24a6da9ef
commit
3fc2184f4c
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user