nginx for apidocs

This commit is contained in:
qiaofeng1227 2023-10-24 16:39:03 +08:00
parent ae415ee76b
commit 6cbdfcd9ef

View file

@ -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/;