diff options
Diffstat (limited to 'support/doc/production.md')
-rw-r--r-- | support/doc/production.md | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/support/doc/production.md b/support/doc/production.md index 313b57889..34d213ec6 100644 --- a/support/doc/production.md +++ b/support/doc/production.md | |||
@@ -1,7 +1,7 @@ | |||
1 | # Production guide | 1 | # Production guide |
2 | 2 | ||
3 | * [Installation](#installation) | 3 | * [Installation](#installation) |
4 | * [Upgrade](#upgrade) | 4 | * [Upgrade](#upgrade) |
5 | 5 | ||
6 | ## Installation | 6 | ## Installation |
7 | 7 | ||
@@ -24,6 +24,14 @@ Set its password: | |||
24 | $ sudo passwd peertube | 24 | $ sudo passwd peertube |
25 | ``` | 25 | ``` |
26 | 26 | ||
27 | **On FreeBSD** | ||
28 | |||
29 | ``` | ||
30 | $ sudo pw useradd -n peertube -d /var/www/peertube -s /usr/local/bin/bash -m | ||
31 | $ sudo passwd peertube | ||
32 | ``` | ||
33 | or use `adduser` to create it interactively. | ||
34 | |||
27 | ### Database | 35 | ### Database |
28 | 36 | ||
29 | Create the production database and a peertube user inside PostgreSQL: | 37 | Create the production database and a peertube user inside PostgreSQL: |
@@ -115,6 +123,13 @@ Now you have the certificates you can reload nginx: | |||
115 | $ sudo systemctl reload nginx | 123 | $ sudo systemctl reload nginx |
116 | ``` | 124 | ``` |
117 | 125 | ||
126 | **FreeBSD** | ||
127 | On FreeBSD you can use [Dehydrated](https://dehydrated.io/) `security/dehydrated` for [Let's Encrypt](https://letsencrypt.org/) | ||
128 | |||
129 | ``` | ||
130 | $ sudo pkg install dehydrated | ||
131 | ``` | ||
132 | |||
118 | ### systemd | 133 | ### systemd |
119 | 134 | ||
120 | If your OS uses systemd, copy the configuration template: | 135 | If your OS uses systemd, copy the configuration template: |
@@ -238,7 +253,7 @@ Restart PeerTube: | |||
238 | $ sudo systemctl restart peertube | 253 | $ sudo systemctl restart peertube |
239 | ``` | 254 | ``` |
240 | 255 | ||
241 | ### Things went wrong? | 256 | ### Things went wrong? |
242 | 257 | ||
243 | Change `peertube-latest` destination to the previous version and restore your SQL backup: | 258 | Change `peertube-latest` destination to the previous version and restore your SQL backup: |
244 | 259 | ||