-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我用nginx配置了一个二级路径,/docs路径就没有办法访问了 #20
Comments
我还配置了app.config["APPLICATION_ROOT"] = "/eng/",其他接口都可以使用,只有/docs接口没有办法用 |
经过测试,问题出现在 这行return render_template(ui_file, spec_url=self.openapi_url),改成return render_template(ui_file, spec_url=“eng" + self.openapi_url)这样就是可以的 |
这个 |
是的,那是我的业务路径,不知道有什么方法可以配置? |
应该默认获取同级路由, 不应该自己去配置 |
@lzjun567 大佬,改一下templates, 从js 那边获取当前页面的url |
1 similar comment
@lzjun567 大佬,改一下templates, 从js 那边获取当前页面的url |
worker_processes 1;
events {
worker_connections 1024;
}
http {
server {
listen 80;
server_name tttt;
}
nginx路径配置如下,访问tttt/eng/docs时会报错,
Errors
Hide
Fetch errorresponse status is 404 /openapi.json
The text was updated successfully, but these errors were encountered: