plantuml在docker上运行。
端口必须从8080:8080更改为8088:8080。
它在http://localhost:8088/uml上工作,在http://localhost:8088/plantuml上不工作
gitlab建议使用以下配置
nginx['custom_gitlab_server_config'] = "location /-/plantuml { \n rewrite ^/-/(plantuml.*) /$1 break;\n proxy_cache off; \n proxy_pass http://localhost:8088/plantuml; \n}\n"由于上述情况,我已经尝试了以下方法,但没有成功(用uml代替plantuml)
nginx['custom_gitlab_server_config'] = "location /-/plantuml { \n rewrite ^/-/(plantuml.*) /$1 break;\n proxy_cache off; \n proxy_pass http://localhost:8088/uml; \n}\n"你有什么建议如何解决这个问题吗?
编辑添加:正如我所推荐的,我尝试过
nginx['custom_gitlab_server_config'] = "location /-/plantuml { \n rewrite ^/-/plantuml(.*) /uml$1 break;\n proxy_cache off; \n proxy_pass http://localhost:8088/uml; \n}\n"调用https://gitlabdomain.com/uml/AxfDWj2tBq3CoKoPWR1Io8ZDoSa70000的结果是一个404
http和https在这里可能是相关的吗?
发布于 2020-09-12 22:06:33
我遇到了完全相同的问题,这似乎起作用了:
nginx['custom_gitlab_server_config'] = "location /-/plantuml { \n rewrite ^/-/plantuml(.*) $1 break;\n proxy_cache off; \n proxy_pass http://localhost:YOUR_PORT/uml; \n}\n"换句话说,我从URI中删除了plantuml,并简单地将URI的其余部分传递到后端。
https://stackoverflow.com/questions/60188671
复制相似问题