简体   繁体   English

在Dokku中基于路径进行路由

[英]Routing based on path in Dokku

I'm trying to develop some kind of a service-based architecture using Dokku. 我正在尝试使用Dokku开发某种基于服务的体系结构。 But by default Dokku routes based on a subdomain. 但是默认情况下,Dokku会基于子域进行路由。 What I need to do is like this : api.example.com/service1/ api.example.com/service2/ 我需要做的是这样的:api.example.com/service1/ api.example.com/service2/

Where service1 is it's own container and service2 is in another container. 其中service1是它自己的容器,而service2在另一个容器中。

Any suggestions ? 有什么建议么 ?

BTW, I've tried this plugin https://github.com/fkowal/dokku-path-proxy . 顺便说一句,我已经尝试过这个插件https://github.com/fkowal/dokku-path-proxy It didn't work 没用

What I ended up doing is that I've forked this plugin https://github.com/fkowal/dokku-path-proxy to support the latest version of Dokku and it's now working fine. 我最终要做的是,我已经分叉了这个插件https://github.com/fkowal/dokku-path-proxy以支持最新版本的Dokku,并且现在可以正常工作了。 The fork can be found here https://github.com/hussam-almarzoq/dokku-path-proxy 叉子可以在这里找到https://github.com/hussam-almarzoq/dokku-path-proxy

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM