Skip to content

Commit

Permalink
ADM-620:[frontend]feat: add nginx location for swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoDai committed Dec 6, 2023
1 parent d0cb255 commit 4a8b52c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ops/infra/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ http {

location / {
try_files $uri $uri/ /index.html;
}
}

location ~* \.(js|svg|jpg|png|css|html|webmanifest|xml)$ {
root /usr/share/nginx/html;
Expand All @@ -25,5 +25,8 @@ http {
location /api {
proxy_pass http://backend:4322;
}
location /api/v1/swagger-ui/ {
proxy_pass http://backend:4322/api/v1/docs;
}
}
}

0 comments on commit 4a8b52c

Please sign in to comment.