diff --git a/nginx.conf b/nginx.conf index cf60fa1a..f3e9715c 100644 --- a/nginx.conf +++ b/nginx.conf @@ -6,7 +6,7 @@ events { http { default_type application/octet-stream; - include /etc/nginx/mime.types; + include /etc/nginx/mime.types; client_max_body_size 10G; sendfile on; client_header_timeout 3600; @@ -30,8 +30,9 @@ http { proxy_pass http://sonic-server-gateway:3000/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - } + proxy_set_header Connection "upgrade"; + } + location /server/v3/api-docs/swagger-config { #WORKAROUND fixed knife4j doc base path return 200 '{"configUrl":"/server/v3/api-docs/swagger-config","oauth2RedirectUrl":"","operationsSorter":"alpha","tagsSorter":"alpha","urls":[{"name":"sonic-server-controller","serviceName":"sonic-server-controller","url":"/server/api/controller/v3/api-docs?group=default","contextPath":"/server/api/controller","order":1},{"name":"sonic-server-folder","serviceName":"sonic-server-folder","url":"/server/api/folder/v3/api-docs?group=default","contextPath":"/server/api/folder","order":2}],"validatorUrl":""}'; @@ -41,7 +42,7 @@ http { proxy_pass http://localhost:9222/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - } + proxy_set_header Connection "upgrade"; + } } }