为什么gitlab将反向代理网址显示为其基本网址?

时间:2019-07-10 19:57:55

标签: gitlab nginx-reverse-proxy

Gitlab项目页面/电子邮件显示在Nginx中用作反向代理的URL

配置。

我已经设置了nginx反向代理和单独的nginx服务器。配置如下:

server {
        server_name git.domain.com www.git.domain.com;
        listen my-ip-address;
               location / {
               proxy_pass https://my-ip-address:6661;
               }

    listen my-ip-address:443 ssl;
    ssl_certificate /home/my-domain/domains/git.my-domain.com/ssl.combined;
    ssl_certificate_key /home/my-domain-name/domains/git.domain.com/ssl.key;
               }

预期:

项目URL:https://[website.com]/projects/[project-name]

实际结果:

https://[my-ip-address]:[port-number]/projects/[project-name]

0 个答案:

没有答案