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:
- update URL on WebUI
- update your original docker-compose.yml with new domain name:
- $ docker compose down
- open file seahub_settings.py in /opt/seafile-data/seafile/conf/, replace old domain name with new domain name
- 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
- $ docker compose up -d
- all done
