V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
git
Pro Git
Atlassian Git Tutorial
Pro Git 简体中文翻译
GitX
chinafengzhao
V2EX  ›  git

gitlab 多域名 ddns 配置

  •  
  •   chinafengzhao · Jul 20, 2021 · 2147 views
    This topic created in 1747 days ago, the information mentioned may be changed or developed.
    gitlab 是在公司内网部署,rpm 包安装的,用的 gitlab 内置的 nginx 并签发了 ssl 证书,以前是直接让域名解析到内网 IP,现在公司出口设备上取到公网 IP 了,在内网跑了一个 ddns,准备通过 ddns 把内网的 https 暴露到互联网。请问 gitlab 的配置支持多域名吗?
    4 replies    2021-07-20 22:06:55 +08:00
    chinafengzhao
        1
    chinafengzhao  
    OP
       Jul 20, 2021
    希望懂得大佬支持一下。
    athurg
        2
    athurg  
       Jul 20, 2021
    这种情况,统一域名访问可能最稳妥。 在外网,域名 cname 到 DDNS 的域名。内网直接劫持 DNS 解析 A 记录。

    这样内外网都可以用。
    defunct9
        3
    defunct9  
       Jul 20, 2021
    公网 IP 跑 traefik 挂证书自动签续,转发到内网 gitlab 的 nginx; 然后内网 dnsmasq 或者 coredns 劫持域名就行了。
    chinafengzhao
        4
    chinafengzhao  
    OP
       Jul 20, 2021
    @athurg 内网怎么劫持?内网有些同事自己 PC 显示设置自己的 dns 为 dnspod 或 aliDNS 这种。怎么劫持啊?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1511 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 16:22 · PVG 00:22 · LAX 09:22 · JFK 12:22
    ♥ Do have faith in what you're doing.