Gitlab: how to change a domain to old loaded assets?

I changed the domain on my gitlab installation from ABC to XYZ according to the procedure described here:

How to change the url of a working GitLab installation?

The problem is that the old uploaded assets (images added to problems in the projects) still point to the old ABC domain:

https://ABC/uploads/...

The site uses SSL. The old ABC SSL certificate is no longer valid. Therefore, these assets generate "net :: ERR_INSECURE_RESPONSE" in the browser and are not displayed.

Is there a way to renew these assets to use the new domain name? I tried:

bundle exec rake assets:precompile RAILS_ENV=production

to no avail.

Newly uploaded images on the new domain are displayed correctly.

+4
source share
1 answer

Gitlab: how to change a domain to old loaded assets?

, , Gitlab . , Gitlab, URL- - .

Gitlab :

1:

, . .

2:

sudo -u gitlab-psql /opt/gitlab/embedded/bin/psql -h /var/opt/gitlab/postgresql/ gitlabhq_production
update issues set description_html = replace(description_html, 'old.domain', 'new.domain');

3: Gitlab,

Gitlab

apt-get install gitlab
sudo gitlab-rake cache:clear
sudo gitlab-ctl reconfigure

https://gitlab.com/gitlab-org/gitlab-ce/issues/32789

https://gitlab.com/gitlab-org/gitlab-ce/issues/2476

URL- GitLab?

gitlab

0

All Articles