add info about hostname change (#3434)

Co-authored-by: Rigel Kent <par@rigelk.eu>
This commit is contained in:
kontrollanten 2020-12-11 23:48:48 +01:00 committed by GitHub
parent e134eb03cb
commit fffc7c0864
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -84,7 +84,7 @@ $ cd /var/www/peertube && sudo -u peertube cp peertube-latest/config/production.
Then edit the `config/production.yaml` file according to your webserver Then edit the `config/production.yaml` file according to your webserver
configuration. configuration.
**PeerTube does not support webserver host change**. Keep in mind your domain name is definitive after your first PeerTube start. **PeerTube does not support webserver host change**. Even though [PeerTube CLI can help you to switch hostname](https://docs.joinpeertube.org/#/maintain-tools?id=update-hostjs) there's no official support for that since it is a risky operation that might result in unforeseen errors.
### Webserver ### Webserver

View File

@ -302,9 +302,10 @@ $ sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production
### update-host.js ### update-host.js
**Changing the hostname is unsupported and may be a risky operation, especially if you have already federated.**
If you started PeerTube with a domain, and then changed it you will have If you started PeerTube with a domain, and then changed it you will have
invalid torrent files and invalid URLs in your database. To fix this, you have invalid torrent files and invalid URLs in your database. To fix this, you have
to run: to run the command below (keep in mind your follower instances will NOT update their URLs).
``` ```
$ cd /var/www/peertube/peertube-latest $ cd /var/www/peertube/peertube-latest