nginx for apidocs
This commit is contained in:
parent
ae415ee76b
commit
6cbdfcd9ef
1 changed files with 2 additions and 10 deletions
|
@ -102,19 +102,11 @@ server {
|
|||
}
|
||||
}
|
||||
|
||||
location /apidocs/static {
|
||||
proxy_pass http://websoft9-apphub:8080/static;
|
||||
}
|
||||
|
||||
location /apidocs/openapi.json {
|
||||
proxy_pass http://websoft9-apphub:8080/;
|
||||
}
|
||||
|
||||
location /apidocs/ {
|
||||
proxy_pass http://websoft9-apphub:8080/redoc;
|
||||
proxy_pass http://websoft9-apphub:8080/docs;
|
||||
sub_filter 'src="/static' 'src="/apidocs/static';
|
||||
sub_filter 'spec-url="/' 'spec-url="/apidocs/openapi.json';
|
||||
}
|
||||
}
|
||||
|
||||
location /media/ {
|
||||
proxy_pass http://websoft9-apphub:8081/images/;
|
||||
|
|
Loading…
Add table
Reference in a new issue