diff --git a/AsbCloudWebApi/Docs/Nginx/nginx.conf b/AsbCloudWebApi/Docs/Nginx/nginx.conf index 1700cae3..f33640db 100644 --- a/AsbCloudWebApi/Docs/Nginx/nginx.conf +++ b/AsbCloudWebApi/Docs/Nginx/nginx.conf @@ -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";