是否有人安装过gitlab EE,我的模型中有一个例子,nginx作为域https://gitlab.abc.com的代理,它将指向gitlab服务器的ip : proxypass:http://ip.xxxx:80和model,我配置了external_url:http://ip.x.x.x.x,但是问题是,当用户发送忘记的密码电子邮件时,带有链接的电子邮件内容是ip形式的,而不是域,所以请告诉我如何配置它,以便忘记的电子邮件内容在域形式中。?
发布于 2022-02-16 03:29:23
我通过取消注释gitlab.rb配置中的一些行来修正它。
external_url 'https://domain'
nginx['enable'] = true
nginx['listen_addresses'] = ['*', '[::1]']
nginx['listen_port'] = 8081
nginx['proxy_protocol'] = false
nginx['custom_gitlab_server_config'] = "location ^~ /foo-namespace/bar-project/raw/ {\n deny all;\n}\n"
nginx['real_ip_trusted_addresses'] = ['ip for server proxy]在代理服务器上,我代理gitlab的nginx地址(端口8081 )。
https://stackoverflow.com/questions/71136011
复制相似问题