Commit Graph

100 Commits (develop)

Author SHA1 Message Date
Doug Luce e5a44a94b6 Make instructions work on more platforms
The `--sort` argument to ls is a linuxism (more precisely a
gnu-coreutilsism). I get this output when attempting these
instructions on FreeBSD (13):

    $ diff -u "$(ls --sort=t | head -2 | tail -1)/config/production.yaml.example" "$(ls --sort=t | head -1)/config/production.yaml.example"
    ls: unrecognized option `--sort=t'
    usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuvwxy1,] [--color=when] [-D format] [file ...]
    ls: unrecognized option `--sort=t'
    usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuvwxy1,] [--color=when] [-D format] [file ...]
    diff: /config/production.yaml.example: No such file or directory

Changing `--sort=t` to the POSIX-compliant `-t` makes this work as
expected and operates just fine on Linux (tested on Fedora Linux 39).

Fixes #6412
2024-05-28 08:55:33 +02:00
Chocobozzz 6250e4ab1d
Improve production guide 2024-03-11 11:27:33 +01:00
Chocobozzz 64128512b2
Add yarn cleanup info after upgrade 2024-02-15 16:23:09 +01:00
Chocobozzz 00ee545c24
Remove $ for bash commands
It prevents easy copy
2023-04-04 09:18:06 +02:00
Chocobozzz f44cd95c01
Update doc anchor links 2023-02-23 09:46:43 +01:00
Chocobozzz c5c95361e6
Move to new documentation links 2023-02-22 16:15:14 +01:00
Chocobozzz 2426fe16ae
Typo 2023-02-22 10:50:01 +01:00
Chocobozzz 1ab94472d5
Prefer absolute links in doc 2023-02-22 10:46:12 +01:00
Chocobozzz 7a07da01c4
Improve upgrade documentation 2022-12-28 10:29:37 +01:00
Chocobozzz 6689214920
Add a note about worker_connections in doc 2022-10-26 11:22:30 +02:00
Chocobozzz 1ea868a945
Fill documentation with required secret conf 2022-10-10 11:19:45 +02:00
Chocobozzz e76daa7301
Update doc
We use IMPORTANT NOTES instead of BREAKING CHANGES now
2022-09-28 08:29:39 +02:00
Chocobozzz a6c554fb6e
Remove redundant section 2022-07-20 15:56:51 +02:00
J Webb dec4952155
Ensure peertube root directory is setup to be traversed by nginx (#5028)
* Update production.md

On Ubuntu 22.04, the dir `/var/www/peertube` is restricted to user peertube & group peertube. This causes issues with many of the subsequent sudo commands, and also results in white-screen on initial visit to the site due to JS files not being accessible. This PR loosens those requirements, but maybe would be better if nginx is just added to peertube group? This is my first time installing PeertTube, so I'll defer to someone with more knowledge of this framework to vet the approach here.

* Set specific mode on peertube root directory

* Minor fixup

* Prefer ls instead of chmod to check directory

Co-authored-by: Chocobozzz <me@florianbigard.com>
2022-06-21 14:40:53 +02:00
John Livingston 7f6ff46222 Implement 5036: more readable diff on configuration file when upgrading. 2022-06-13 15:59:22 +02:00
Chocobozzz c501cdef27
Add nginx update to changelog 2022-05-24 16:39:19 +02:00
Chocobozzz fc10ecf167
Add info about admin username in doc 2022-03-08 11:44:03 +01:00
Chocobozzz c501f44119
https://builds.joinpeertube.org/release 2021-12-16 14:35:41 +01:00
Chocobozzz a23f6c94ed
Improve production guide
Add syntax highlighting
Add emoji on section titles to better differenciate each section
2021-12-08 09:44:14 +01:00
Chocobozzz 188aa7740c
Add restart peertube info in upgrade doc 2021-09-09 11:04:57 +02:00
Chocobozzz 3dc8a86c80
cd /var/www/peertube in prod guide
Avoid running db creation in /root directory
2021-05-25 11:35:29 +02:00
Rigel Kent b5fdfcbd89
fix FAQ link in production guide 2021-05-01 15:43:28 +02:00
Chocobozzz 6d8e1f28e3
Set permissions in production.md 2021-04-27 09:37:49 +02:00
Chocobozzz 2c5eab14ba
Doc reword 2021-03-04 12:24:23 +01:00
philippe lhardy c11fc2d9de postgres creatuser password comment
user experience, usualy way is to hit enter whern no indication is given, so make it explicit.
2021-03-04 12:22:29 +01:00
Pedro hates github.com c201278db0 unzip silently on production guide 2021-03-03 14:58:28 +01:00
Chocobozzz 8281cf00c0
Remove link to nginx tuning
It's not the purpose of this guide, try to not disperse
2021-02-23 08:38:47 +01:00
G4dter 08a9ee19e1 Update production.md 2021-02-08 15:43:20 +01:00
G4dter f35f23d87a Update production.md 2021-02-08 15:42:15 +01:00
Chocobozzz d8658f0f81
Try to improve install doc 2021-01-11 10:09:24 +01:00
Chocobozzz c0605e6e08
Auto upgrade not only for minor versions 2021-01-07 11:15:16 +01:00
Chocobozzz feb0f99820
Use 127.0.0.1 for nginx proxy in prod doc
Because localhost could also target ipv6
2021-01-07 11:11:57 +01:00
Chocobozzz 7cf88d098a
Use new doc links 2021-01-05 11:01:12 +01:00
Chocobozzz 4948dcdbeb
Add config.yaml copy info in doc 2021-01-04 10:29:08 +01:00
Chocobozzz 8043befa38
Remove references to peertube-admin mailing list 2020-12-15 16:29:24 +01:00
kontrollanten fffc7c0864
add info about hostname change (#3434)
Co-authored-by: Rigel Kent <par@rigelk.eu>
2020-12-11 23:48:48 +01:00
Rigel Kent 11c449eb1e
remove nginx fd caching, add module requirements 2020-11-18 08:15:55 +01:00
Rigel Kent 1a9b141d83
Add nginx behind traefik in docker-compose + image updates
- support/docker/production/docker-compose.yml: addition of a nginx
image reusing support/nginx/peertube nginx conf to improve performance,
and lessen setup differences between the docker-compose install and the
typical production install.
- support/docker/production/docker-compose.yml: postgres 10 -> postgres
12, redis 4 -> redis 5. Postgres major updates implies manual upgrade.
- support/nginx/peertube: HTTP -> HTTPS redirection is now commented
by default, to allow its reuse in support/docker/production/docker-compose.yml.
2020-11-11 16:45:46 +01:00
Steffen Möller 4d582cec7f
production.md - typo (#3169)
* production.md - typo

* production.md: URL update to https://instances.joinpeertube.org

In reaction to comment in pull request.
2020-09-21 14:13:12 +02:00
Chocobozzz 96df6ca606
Clearer install guide for service 2020-08-26 08:31:20 +02:00
Chocobozzz 2c92b0634f
Fix certbot section 2020-08-14 14:59:15 +02:00
Chocobozzz 0539dba824
Force utf8 when creating the database 2020-01-29 11:48:19 +01:00
ManMade-cube42 7a3864e818 Replace `peertube.example.com` with user's Peertube domain. (#2356)
* Add Sed

* Update production.md

* Minor Fix (+ add sudo)

* Update production.md
2019-12-30 10:39:59 +01:00
Wirebrass 67ac918df9 Add/update OpenRC service script (#2012)
* Update APP_DIR and CONFIG_DIR

APP_DIR is now in /var/www/peertube/peertube-latest (symbolic link).
CONFIG_DIR is now in /var/www/peertube/config

* Add OpenRC service script

Tested on Gentoo Linux.
2019-08-13 09:22:54 +02:00
Axel Viala 3daaa19274 Add way to set root password by environment.
Add a condition test to pass by environment a predetermined
root password for setting up.
2019-05-16 09:17:10 +02:00
Chocobozzz d06caf3e67
Add CLI tools doc link in production.md 2019-02-21 15:02:35 +01:00
Mateusz Piotrowski 31d45e0e0b Improve FreeBSD setup instructions
Use install(1) instead of cp(1) and chmod(1) to install
the service file. Also, use sysrc(8) to enable the PeerTube
service in rc.conf(5).
2018-11-21 10:46:56 +01:00
Micah Elizabeth Scott f74c294a0d Suggest TCP/IP tuning to prevent buffer bloat + latency (#976)
* Suggest TCP/IP CoDel and BBR congestion control in production guide

This seems to be helping lots on my server, where the default
(Debian 9) was to use FIFO queueing which would cause buffer bloat
and huge latency for clients on slower network links.
2018-08-28 09:29:29 +02:00
Chocobozzz 65fcf1e9c2
Reduce FreeBSD title size 2018-08-21 10:48:57 +02:00
Josh Morel 43c4c63937 fix pg_restore command for post-migrations
also avoid peertube db login for pg_dump command
2018-07-30 16:38:31 +02:00