From 3fc2184f4c6d123c877920a99997603cca7b3ed3 Mon Sep 17 00:00:00 2001 From: Olga Nemt Date: Fri, 10 Nov 2023 10:05:01 +0500 Subject: [PATCH] =?UTF-8?q?location=20=D0=B4=D0=BB=D1=8F=20swagger=20?= =?UTF-8?q?=D0=B2=20nginx.conf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AsbCloudWebApi/Docs/Nginx/nginx.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) 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";