From: ManMade-cube42 <59210155+ManMade-cube42@users.noreply.github.com> Date: Mon, 30 Dec 2019 09:39:59 +0000 (+0000) Subject: Replace `peertube.example.com` with user's Peertube domain. (#2356) X-Git-Tag: v2.1.0-rc.1~134 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7a3864e818ff9e36dc991dab4ae4aa5a0a3dcf4d;p=oweals%2Fpeertube.git Replace `peertube.example.com` with user's Peertube domain. (#2356) * Add Sed * Update production.md * Minor Fix (+ add sudo) * Update production.md --- diff --git a/support/doc/production.md b/support/doc/production.md index f770b58f6..8f061f868 100644 --- a/support/doc/production.md +++ b/support/doc/production.md @@ -96,6 +96,13 @@ Copy the nginx configuration template: $ sudo cp /var/www/peertube/peertube-latest/support/nginx/peertube /etc/nginx/sites-available/peertube ``` +Then set the domain for the webserver configuration file. +Replace `[peertube-domain]` with the domain for the peertube server. + +``` +$ sudo sed -i 's/peertube.example.com/[peertube-domain]/g' /etc/nginx/sites-available/peertube +``` + Then modify the webserver configuration file. Please pay attention to the `alias` keys of the static locations. It should correspond to the paths of your storage directories (set in the configuration file inside the `storage` key).