diff options
author | ManMade-cube42 <59210155+ManMade-cube42@users.noreply.github.com> | 2019-12-30 09:39:59 +0000 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-12-30 10:39:59 +0100 |
commit | 7a3864e818ff9e36dc991dab4ae4aa5a0a3dcf4d (patch) | |
tree | 76e16d0ac4e3b3e2c3317763382ab2b8eb79de98 | |
parent | 9d45db2919862640ad550c5326fb21ddc08d6d59 (diff) | |
download | PeerTube-7a3864e818ff9e36dc991dab4ae4aa5a0a3dcf4d.tar.gz PeerTube-7a3864e818ff9e36dc991dab4ae4aa5a0a3dcf4d.tar.zst PeerTube-7a3864e818ff9e36dc991dab4ae4aa5a0a3dcf4d.zip |
Replace `peertube.example.com` with user's Peertube domain. (#2356)
* Add Sed
* Update production.md
* Minor Fix (+ add sudo)
* Update production.md
-rw-r--r-- | support/doc/production.md | 7 |
1 files changed, 7 insertions, 0 deletions
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: | |||
96 | $ sudo cp /var/www/peertube/peertube-latest/support/nginx/peertube /etc/nginx/sites-available/peertube | 96 | $ sudo cp /var/www/peertube/peertube-latest/support/nginx/peertube /etc/nginx/sites-available/peertube |
97 | ``` | 97 | ``` |
98 | 98 | ||
99 | Then set the domain for the webserver configuration file. | ||
100 | Replace `[peertube-domain]` with the domain for the peertube server. | ||
101 | |||
102 | ``` | ||
103 | $ sudo sed -i 's/peertube.example.com/[peertube-domain]/g' /etc/nginx/sites-available/peertube | ||
104 | ``` | ||
105 | |||
99 | Then modify the webserver configuration file. Please pay attention to the `alias` keys of the static locations. | 106 | Then modify the webserver configuration file. Please pay attention to the `alias` keys of the static locations. |
100 | It should correspond to the paths of your storage directories (set in the configuration file inside the `storage` key). | 107 | It should correspond to the paths of your storage directories (set in the configuration file inside the `storage` key). |
101 | 108 | ||