Skip to content

Commit

Permalink
Update nginx.conf
Browse files Browse the repository at this point in the history
Signed-off-by: Eason <[email protected]>
  • Loading branch information
ZhouYixun committed Feb 26, 2024
1 parent 76ef9f9 commit bc72aa4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -30,8 +30,9 @@ http {
proxy_pass https://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":""}';
Expand All @@ -41,7 +42,7 @@ http {
proxy_pass https://localhost:9222/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
proxy_set_header Connection "upgrade";
}
}
}

0 comments on commit bc72aa4

Please sign in to comment.