Change server URL (domain name)

Assume I created a seafile server named http://seafile.domain1.com and everything works.
I now need to change (without doing a sever migration) the domain name and url to a new one.
What files should I change in server side?

You have to change the preferences in the ccnet-db database (You can do that with the WebUI in the WebUi preferences) and the domain name in your nginx/apache config.

2 Likes

I am on CE - docker , I think version 9 or something, in WebUi I updated to the new domain name, as soon as I restarted the container, it stops working completely.

I also updated all the config file in /opt/seafile-data/seafile/conf/, still no luck

anyone has any clue?

following steps works for me:

  1. update URL on WebUI
  2. update your original docker-compose.yml with new domain name:
  3. $ docker compose down
  4. open file seahub_settings.py in /opt/seafile-data/seafile/conf/, replace old domain name with new domain name
  5. delete or rename file seafile.nginx.conf in /opt/seafile-data/nginx/conf/ $ sudo mv /opt/seafile-data/nginx/conf/seafile.nginx.conf /opt/seafile-data/nginx/conf/seafile.nginx.conf.bak
  6. $ docker compose up -d
  7. all done