JiZhiDeboy
V2EX  ›  Java

内外网系统怎么处理?

  •  
  •   JiZhiDeboy · Feb 24, 2021 · 2519 views
    This topic created in 2099 days ago, the information mentioned may be changed or developed.

    各位大佬,有个场景,看看我要怎么处理。 A 服务 可以外网访问, B 服务 只能内网访问, A 服务器上可以访问 B 服务,现在有 B 服务的一个视频链接地址,要在外网能访问这个视频, 现在方案是 A 服务直接读取 B 服务视频链接的视频流返回 大佬们还有其它比较好的实现方案吗?

    3 replies  •  2021-02-24 19:04:44 +08:00
    learningman
    learningman
    Feb 24, 2021
    1
    反向代理.jpg
    kiddingU
    kiddingU
    Feb 24, 2021
    2
    限制 ip 不就得了
    biguokang
    biguokang
    Feb 24, 2021
    3
    nginx 做反向代理

    nginx 装在你外网服务的 A 机器里,然后配置 nginx 配置,识别到是 B 服务的视频链接地址,就把请求转发到 B 服务
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3327 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 00:58 · PVG 08:58 · LAX 16:58 · JFK 19:58
    ♥ Do have faith in what you're doing.