• 请不要在回答技术问题时复制粘贴 AI 生成的内容
buaacss
V2EX  ›  程序员

给 kong 加上 fastcgi 协议,直接转发给 PHP 微服务

  •  
  •   buaacss ·
    roodkcab · Jul 17, 2020 · 3605 views
    This topic created in 2304 days ago, the information mentioned may be changed or developed.
    我司是重度 php 用户,自从用上 k8s 一直迫于在 pod 中加一层 nginx,结果一个简单的请求链路就变成 kong - nginx - php-fpm 。给 kong 加了一个 fcgi 协议的支持,但是迫于 pr 没有被合并,只好自己维护一个分支

    pr 在这里,支持的话还请大家帮忙 vote 一下,以便 kong 团队了解 fcgi 协议还是有很大市场的
    https://github.com/Kong/kong/pull/5642

    branch 在这里,喜欢的话给个星星,可以帮忙在 k8s 部署使用哦
    https://github.com/roodkcab/kong/tree/fastcgi
    https://github.com/roodkcab/kubernetes-ingress-controller/tree/fastcgi
    7 replies  •  2021-04-06 19:04:12 +08:00
    mudone
    mudone
    Jul 17, 2020
    1
    挺好的,支持楼主一记,看上去官方并不打算把 fastcgi 支持加进去。
    buaacss
    buaacss
    OP
    Jul 17, 2020
    2
    @mudone 感谢支持!官方应该是把注意力放在其它事情上了,未来可能会用更好的方式支持协议扩展,其实还是挺期待的,硬编码的方式确实不友好,不够够用啦。
    KalaSearch
    KalaSearch
    Jul 18, 2020
    3
    已帮点。楼主这 id 一看就是 buaa 的大帅哥
    buaacss
    buaacss
    OP
    Jul 18, 2020 via iPhone
    4
    @KalaSearch ♥️
    putyy
    putyy
    Apr 6, 2021
    5
    大佬 官方现在还没合并上去吗
    buaacss
    buaacss
    OP
    Apr 6, 2021
    6
    @putyy 还没有,需要的话只能自己 fork 一下用啦
    buaacss
    buaacss
    OP
    Apr 6, 2021
    7
    官方说会考虑增加自定义协议的支持,不过目前看来没人做
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1528 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 77ms · UTC 15:30 · PVG 23:30 · LAX 07:30 · JFK 10:30
    ♥ Do have faith in what you're doing.