Commit Graph

288 Commits (8b9a525a180cc9f3a98c334cc052dcfc8f36dcd4)

Author SHA1 Message Date
Chocobozzz 6a1787c127
Add translation guide 2018-06-21 14:07:53 +02:00
Chocobozzz 6387f320bf
Fix docker compose with admin email 2018-06-21 08:17:42 +02:00
Pierre-Alain TORET 80d7cf3a15 Update doc for CentOS 7 devtoolset-7
Signed-off-by: Pierre-Alain TORET <pierre-alain.toret@protonmail.com>
2018-06-18 10:02:11 +02:00
Florent F 05623b9030 Add resolution to create-transcoding-job script (#654)
* Add resolution to create-transcoding-job script

* Requested changes
2018-06-15 18:27:35 +02:00
Chocobozzz bbe0f0645c
Add ability to schedule video publication 2018-06-15 18:20:56 +02:00
Chocobozzz b314f983f0
Add note in upgrade guide for nginx/systemd 2018-06-14 09:42:03 +02:00
Chocobozzz 850c1bf7cc
Move iso639 strings in its own translation file 2018-06-13 15:55:13 +02:00
Chocobozzz 2186386cca
Add concept of video state, and add ability to wait transcoding before
publishing a video
2018-06-12 20:37:51 +02:00
Chocobozzz 54a3a12ed2
Improve tools documentation 2018-06-11 15:47:32 +02:00
Chocobozzz f286060081
Add API example to list videos 2018-06-11 14:45:43 +02:00
Chocobozzz e8d639b1d7
Fix docker config 2018-06-11 10:09:17 +02:00
Kody fbd2ad19b6 Update sudo command for yarn during upgrade 2018-06-07 15:08:43 +02:00
Rigel Kent a5f0521f03 (doc) adding tools documentation for job creation 2018-06-07 15:07:48 +02:00
Chocobozzz 157b62b1f4
Add dev doc about localization 2018-06-06 19:38:25 +02:00
Chocobozzz d4d5853e65
Blank instead of null for docker env 2018-06-05 14:04:51 +02:00
Florent Poinsaut 632f9815c6 add the comment from https://github.com/Chocobozzz/PeerTube/pull/617/files#diff-5003d902a2333dfdbcd79d688f2806daL38 2018-06-05 08:47:01 +02:00
Florent Poinsaut f83e339b82 Environment variables for Docker Compose 2018-06-05 08:47:01 +02:00
Rigel Kent 1dd59831f8 (docker) making security settings of traefik on par with nginx 2018-06-04 23:14:26 +02:00
David Libeau 50a3f3b821 Remove "/" of PEERTUBE_URL example
With an url ended with a "/", the script returns an error.
2018-06-01 08:36:21 +02:00
Chocobozzz e10c7d5125
Update archlinux dependencies 2018-05-30 16:38:24 +02:00
Chocobozzz df9e1d6978
Fix docker config custom env copy 2018-05-30 08:45:34 +02:00
Chocobozzz 18eb286e0b
Cleanup docker configuration 2018-05-30 08:39:44 +02:00
Pierre Jaury 51df0cf3d7 Do not set default transcoding resolutions 2018-05-30 08:33:19 +02:00
Pierre Jaury a4ac1c999e Allow to setup transcoding in the docker image 2018-05-30 08:33:19 +02:00
norrist af5262f113 (doc): use sysrc instead of editing /etc/rc.conf on FreeBSD (#603) 2018-05-29 21:04:29 +02:00
Chocobozzz 6401417d6c
Add help in conf file regarding SMTP 2018-05-29 10:28:08 +02:00
Chocobozzz 0c985c5a03
Copy custom-environment-variables.yaml on docker startup 2018-05-29 10:04:04 +02:00
Chocobozzz 87529dbfdf
Improve production guide format 2018-05-29 09:36:14 +02:00
David Libeau cfdd9eb4b0 Update production.md 2018-05-29 09:34:15 +02:00
Chocobozzz 08806798d0
Add disable_starttls configuration variable for docker 2018-05-28 19:17:32 +02:00
Chocobozzz 9007daff82
Stop docker containers before upgrading 2018-05-28 11:39:09 +02:00
Chocobozzz b44a96300c
Improve docker doc and fix missing keys on update 2018-05-28 11:36:27 +02:00
Chocobozzz ad9e39fb81
Only use account name in routes 2018-05-25 10:41:07 +02:00
Jan Keromnes a14d3b6b23 Update Janitor Dockerfile
- Upgrade to newer janitortechnology/ubuntu-dev base image
- Fix workspace folder
- Add Theia port
- Dockerfile best practices
2018-05-17 08:18:56 +02:00
Rigel Kent 48d46d81af SysVinit script 2018-05-13 16:30:05 +02:00
John Livingston 066fc8ba71 import-videos: prompt for password 2018-05-11 15:23:50 +02:00
Jacques Foucry dea65ef241 Remove the /etc/pkg/FreeBSD.conf change. The latest version came with node 10 and PeerTube does not deal with it. Staying in quartely give node 9.10.1 2018-05-10 10:05:36 +02:00
Chocobozzz fd5e57bbe2
Docker config directory as volume 2018-05-07 18:41:10 +02:00
Pierre-Alain TORET d9c1882dd0 Switch Arch Linux dependency to NodeJS LTS
Signed-off-by: Pierre-Alain TORET <pierre-alain.toret@protonmail.com>
2018-05-07 16:10:51 +02:00
Chocobozzz af111faf77
Fix docker production configuration 2018-05-07 15:26:28 +02:00
Chocobozzz 13a6b53655
Preferably use the docker hub image 2018-05-07 10:51:44 +02:00
Florent Fayolle 4b431d519c Adapt docker image file path in docker-compose.yml 2018-05-07 09:22:18 +02:00
Chocobozzz cc918ac3f4
Update video-channel routes (again)
Use /video-channels now, it's more simple for clients
2018-04-25 16:16:21 +02:00
Chocobozzz 6b738c7a31
Video channel API routes refractor 2018-04-25 13:50:48 +02:00
Chocobozzz 48dce1c90d
Update video channel routes 2018-04-24 17:12:57 +02:00
Chocobozzz b4d1af3dd8
Bold dependencies part in production guide 2018-04-24 15:00:30 +02:00
Chocobozzz 9d3ef9fe05
Use ISO 639 for languages 2018-04-23 14:39:52 +02:00
Pierre-Alain TORET cff8b272b1 Support hostname binding in config
* Add basic support for hostname binding

Signed-off-by: Pierre-Alain TORET <pierre-alain.toret@protonmail.com>

* Make production example a bit more secure

Signed-off-by: Pierre-Alain TORET <pierre-alain.toret@protonmail.com>

* Make example config files compatible with hostname binding modification

Signed-off-by: Pierre-Alain TORET <pierre-alain.toret@protonmail.com>

* Fix typo

Signed-off-by: Pierre-Alain TORET <pierre-alain.toret@protonmail.com>

* Bind on 127.0.0.1 by default

Signed-off-by: Pierre-Alain TORET <pierre-alain.toret@protonmail.com>

* Update Docker configuration with hostname binding

Signed-off-by: Pierre-Alain TORET <pierre-alain.toret@protonmail.com>
2018-04-17 11:14:32 +02:00
Chocobozzz c0c7416a23
Add rest api quickstart 2018-04-17 11:12:37 +02:00
Rigel Kent 244e76a552
feature: initial syndication feeds support
Provides rss 2.0, atom 1.0 and json 1.0 feeds for videos (instance and account-wide) on listings and video-watch views.

* still lacks redis caching
* still lacks lastBuildDate support
* still lacks channel-wide support
* still lacks semantic annotation (for licenses, NSFW warnings, etc.)
* still lacks love ( ˘ ³˘)

* RSS: has MRSS support for torrent lists!
* RSS: includes the first torrent in an enclosure
* JSON: lists all torrents in the 'attachments' object
* ATOM: lacking torrent listing support

Advances #23
Partial implementation for the accountId generation in the client, which will need a hotfix to add a way to get the proper account id.
2018-04-17 01:09:06 +02:00
Chocobozzz c36d5a6b98
Try to fix docker automatic build (again...) 2018-04-16 20:22:42 +02:00
Chocobozzz 33837e8bc2
Try to fix automatic dockerbuild 2018-04-16 19:04:04 +02:00
Chocobozzz 4aeb67a569
Improve dockerfile 2018-04-16 18:44:57 +02:00
Chocobozzz 94ff4c2335
Add auth documentation 2018-04-16 17:27:00 +02:00
Florent Poinsaut f36fb3ecb1 Fix the execution right for docker-entrypoint.sh 2018-04-16 17:26:50 +02:00
Florent Poinsaut 399d20eae6 use gosu to fix /data permissions errors 2018-04-16 09:33:49 +02:00
Florent Poinsaut 2cfd392b58 Add .gitignore for Docker 2018-04-10 22:08:40 +02:00
Rigel Kent 8b1c694406
Adding a more specific phrasing for yarn installation (#487) 2018-04-09 22:28:53 +02:00
Chocobozzz 228e84aa7e
Upgrade spectacle module 2018-04-06 10:44:02 +02:00
Chocobozzz 9c758359c0
Add what now section to production guide 2018-04-06 10:36:21 +02:00
Chocobozzz 97ea24045d
Fix api doc in video update endpoint 2018-04-06 10:20:11 +02:00
Chocobozzz 61b66b361f
Upgrade api doc 2018-04-06 10:17:06 +02:00
Chocobozzz 779f000083
Update docker image name 2018-04-03 09:04:35 +02:00
victor-long 2f7ac61807 Documentation for macOS development. (#462) 2018-04-03 00:12:58 +02:00
luz.paz f209b32afa Misc. typos
Found via `codespell -q 3`
2018-03-30 18:51:57 +02:00
Armando Lüscher 2920281946 Fix little typo in variable. 2018-03-30 08:34:36 +02:00
Luc Didry 4246247fd6 Add precision on upgrade script (#433) 2018-03-29 14:27:55 +02:00
Chocobozzz 490b595a01
Prevent brute force login attack 2018-03-29 11:03:30 +02:00
Chocobozzz 45cd28b679
Remove alpine image 2018-03-28 13:45:24 +02:00
Gérald Niel 39d1bb985a Update dependencies.md 2018-03-27 20:04:58 +02:00
Gérald Niel 6b48f04e69 Fix typo in markdown syntax 2018-03-27 20:01:51 +02:00
Gérald Niel 4c86a254a5 Mise à jour documentation pour FreeBSD 2018-03-27 19:14:31 +02:00
Okhin 193b12bf8f Add the activation of a needed SCL for CentOS
There's a need to activate the devtool-6 SCL before running the yarn install command, to have node-gyp correctly compiling the needed binaries.
2018-03-24 21:17:29 +01:00
Okhin 0414ed1066 Improving the CentOS7 specific parts
Changing the link  for ffmpeg toward a tutorial with an actual mirror of ffmpeg, and with less hassle.
Adding the deendencies to devtoolset-6 and centos-release-scl to provide a C++11 compatible G++
2018-03-24 21:17:29 +01:00
Angristan 03ae9d887a Add permissions instructions for the data volume (#387)
* Add permissions instructions for the data volume

* Remove useless newline
2018-03-23 14:34:01 +01:00
Angristan c7574e8661 Run the installation as the peertube user inside the Docker image (#385)
* Run the installation as the peertube user

* Run the installation as the peertube user
2018-03-23 14:33:51 +01:00
Chocobozzz 95540ed23a
Prepare building docker files on docker hub 2018-03-23 11:22:26 +01:00
Angristan 95981f6bec Fix data volume path in docker-compose 2018-03-22 18:00:25 +01:00
Chocobozzz bebf2d89d3
Add option to disable starttls 2018-03-22 16:12:52 +01:00
Angristan 0c49373af9 Use {postgres,redis}:alpine images with docker-compose (#372)
* Specify Redis major version
2018-03-22 14:08:55 +01:00
Chocobozzz 05e67d6206
Add logging for emails 2018-03-22 11:47:26 +01:00
Chocobozzz 30f550251d
Add information about the definitive peertube domaine name 2018-03-21 10:57:45 +01:00
Chocobozzz 051bf3f773
Revert "Selective route permission to use embeds, fixes #322 in a better way (#364)" (#365)
This reverts commit d40cd86bf5.
2018-03-20 17:39:36 +01:00
Rigel Kent d40cd86bf5 Selective route permission to use embeds, fixes #322 in a better way (#364) 2018-03-20 17:28:41 +01:00
Chocobozzz 164e6c8778
Prepare beta 2018-03-20 10:32:54 +01:00
Chocobozzz 07aa93a8f2
Reformat production guide 2018-03-20 08:28:20 +01:00
Gérald Niel 6d55bd21a9 Add FreeBSD startup 2018-03-19 22:48:15 +01:00
Gérald Niel d29e239cc4 Add FreeBSD rc script 2018-03-19 17:19:39 +01:00
Chocobozzz 5d00a3d7aa
Update the api documentation 2018-03-19 14:20:04 +01:00
Benjamin Bouvier 3b2ed89181 [docker] Add short_description option in Docker configuration too; (#342) 2018-03-15 16:02:23 +01:00
Chocobozzz 30274d67eb
Fix spelling in dependencies 2018-03-15 14:40:06 +01:00
Millicent Billette 955f14a44a ppa for ffmpeg in dependencies documentation (#340) 2018-03-15 14:39:27 +01:00
Benjamin Bouvier ef48a0d50a [docker] Update production guidelines and docker-compose file; (#341) 2018-03-15 14:39:04 +01:00
Chocobozzz 2e3a0215d0
Add short description in config 2018-03-15 14:34:47 +01:00
Andréas Livet 44a9a76e29 Update g++ needed version (#338)
In order to build properly rdf-canonize node nativ module gcc > 5 is needed. Tested on Ubuntu 14.04 with gcc 4.8, it didn't work. I had to install a newer gcc version and it was OK.
2018-03-14 12:49:58 +01:00
Chocobozzz 9940241328
Update documentations 2018-03-14 09:15:17 +01:00
Florian 93d1575311 fix first sudo command (#337) 2018-03-14 08:58:33 +01:00
Florian bc2fc1a783 adding some instructions for certbot and basic utility programs needed (#336) 2018-03-14 08:46:55 +01:00
Chocobozzz 66c3b7744c
Add example for "small device" in production guide 2018-03-13 09:40:39 +01:00
Chocobozzz 19a3b914f1
Change video abuse API response 2018-03-12 11:44:28 +01:00
Chocobozzz b64c950a1c
Update videos api list for account 2018-03-12 11:44:28 +01:00
Chocobozzz fec2ffc4a2
Better docker test doc 2018-03-11 09:57:25 +01:00
Millicent Billette 7f456189b7 `docker-compose up app` need a docker-compose.yml file in current folder to work. 2018-03-11 01:37:23 +01:00
Chocobozzz ea65a47623
Add api base path in documentation 2018-03-07 13:13:40 +01:00
Chocobozzz ab0ee6a14f
Upgrade api doc html file 2018-03-07 08:11:38 +01:00
Chocobozzz 635a5686e3
Fix tool documentation 2018-03-06 08:27:20 +01:00
Benjamin EWFT 4a31886e32 Update dependencies for Archlinux 2018-03-05 21:13:30 +01:00
Chocobozzz 358770dbbd
Refractor tools documentation 2018-03-05 10:00:15 +01:00
Chocobozzz ad34cfc8ac
Add documentation for upload script 2018-03-05 09:53:16 +01:00
Valvin 446f78d7b4 Remove X-Frame options in nginx config (#322)
`X-Frame-Options DENY;` doesn't permit sharing using iframe
2018-03-05 09:40:36 +01:00
Chocobozzz 4919b6304f
Fix nginx configuration that do not work with import-videos script 2018-03-01 17:14:57 +01:00
Chocobozzz e6607b2512
Upgrade production guide for nginx 2018-03-01 16:12:00 +01:00
Stefan Schüller 245dc51de0 Fixed import-videos filename (#311) 2018-02-25 10:22:22 +01:00
SVNET Libre a640b861b9 Update Production Guide (#309)
* Update Production Guide

Pull Request #308

* change the execution of the script
2018-02-21 17:05:21 +01:00
Chocobozzz 61b3e146e1
Add ability to import videos from all supported youtube-dl sites 2018-02-20 18:16:13 +01:00
Chocobozzz 07fa4c97ca
Add support to video support on client 2018-02-20 16:13:55 +01:00
Chocobozzz 35501c0fa7
Add ability to import just one video from youtube 2018-02-19 11:12:58 +01:00
LecygneNoir 2519d9fec6 add import-youtube guide inside documentation (#298)
* add import-youtube guide inside documentation

* safer to use unlink instead of rm to delete symbolic link, avoid risk of deleting entire directories in case of syntax error

* spelling mistake corrections

* anonymise URLs

* git also needed as dependencies to run yarn install
2018-02-19 09:42:43 +01:00
Dimitri Gilbert 44cb3b85f8 Apidoc (#302)
* Basic api documentation

* fix styling issue

* fix styling issue

* gitignore unecessary folders

* openApi 2.0 first draft

* solved conflicts

* solved errors in openapi file

* added missing doc on video + deleted apidoc comments

* fix last warnings and errors inopenapi definition

* openapi fix typo + improvement on video/comment endpoints

* removed misplaced openapi file

* api documentation improvement
2018-02-17 19:24:56 +01:00
Chocobozzz 0b49571268
Try to improve production guide 2018-02-16 11:04:12 +01:00
Chocobozzz a8b5ce95f5
Better upgrade script consistency 2018-02-14 16:03:09 +01:00
Rigel Kent e883399fa6 Precisions and security enhancements to the production guide (#287)
- added precisions and suggestions about how to generate Let's Encrypt certificates. Users have reported their installations didn't work when the problem came from missing certificates (false positives).
- security defaults of Nginx follow the basic robustness principle "be conservative in what you send, be liberal in what you accept", which isn't enough with modern security standards, so we should be picky with the cipher suites we use, among other things. Extra comments (especially for the TLS1.3 protocol support parameter) make the requirement of a recent Nginx installation obvious, and the downgrade alternative remains clear to the system administrator.

All in all, we should aknowledge users will most often copy and paste the configuration files. Making them secure by default may force a few users to read their configuration, but on the long run we are making the fediverse more secure.

Since I've come to modify a bit the Nginx config in `support/doc/production.md`, I've merged it with the template so that they stay consistent.
2018-02-14 11:11:49 +01:00
SVNET Libre 1007a0185f Update Guide for upgrade procedure (#281) (#291) 2018-02-14 11:03:39 +01:00
Erwan Croze 053ad3a346 Adding dependencies informations for CentOS 7 (#288) 2018-02-12 08:11:45 +01:00
Chocobozzz 1185c246c5
Add warning in production guide 2018-02-09 13:38:19 +01:00
Chocobozzz f529f9835e
Fix "things went wrong" documentation 2018-02-08 09:52:57 +01:00
kaiyou 6500a90cfe Expose SMTP and instance settings in the Docker environment variables (#277) 2018-02-06 08:37:36 +01:00
Valvin 09c93c2031 update yarn installation command (#267)
on ubuntu `sudo -u` doesn't set homedirectory of the targeted user althought debian does. it requires the option `-H`. I think with this option it works in both case.
2018-02-01 08:55:17 +01:00
Chocobozzz 4805cff179
Fix migrations 2018-01-29 11:58:07 +01:00
Chocobozzz 4df6a1b8e1
Move docker do in support/doc 2018-01-29 11:23:38 +01:00
kaiyou e8395f027b Add production Alpine and Debian Stretch Docker images (#225)
* First pass at a (swarm-compatible) docker image

Uses an existing traefik server as a https reverse proxy.

* Add example config for a Docker swarm deployment

* Point to traefik config for docker compose setup

* Clarify that traefik is needed for the example config

* Use node:8-stretch base image and don't install yarn

(The base image already contains yarn.)

* Initial commit for an Alpine Docker image

* Fix docker volume path

* Merge #213 and #225 and move files around

* Remove unnecessary dependencies from the alpine build

* Update Dockerfiles to match install path, config path, etc.

* Update the configuration in the example compose file

* Update the configuration in the example swarm file

* Remove the declared networks and volumes from the compose example, which are not strictly required

* Update attachment path in the documentation

* Display traefik as a suggestion and not a required dependency

* Update the Docker ignored files

* Fix typos reported in #225

* Move production Dockerfiles to a production directory

* Add the redis configuration settings

* Add Docker files to the dockerignore

* Make the signup limit configurable
2018-01-29 08:52:20 +01:00
Chocobozzz 7859b5800c
Add message for public registration on peertube 2018-01-26 14:14:59 +01:00
Chocobozzz ce487e1e3b
Upgrade clearer in production guide 2018-01-26 10:50:05 +01:00
Chocobozzz 94a5ff8a4a
Move job queue to redis
We'll use it as cache in the future.

/!\ You'll loose your old jobs (pending jobs too) so upgrade only when
you don't have pending job anymore.
2018-01-25 18:41:17 +01:00
Dimitri Gilbert c360c49456 Api doc improvement (#252)
* Basic api documentation

* fix styling issue

* fix styling issue

* gitignore unecessary folders

* openApi 2.0 first draft

* solved conflicts

* solved errors in openapi file

* added missing doc on video + deleted apidoc comments

* fix last warnings and errors inopenapi definition

* openapi fix typo + improvement on video/comment endpoints

* removed misplaced openapi file
2018-01-25 18:39:51 +01:00
Jan Keromnes 897cab462b Pre-build PeerTube again in dev Dockerfile.
PeerTube pre-build was removed in #207 but is still valuable.
2018-01-25 14:48:06 +01:00
Benjamin Bouvier a585af352c Fixes #205: Fix Janitor configuration; 2018-01-25 11:13:07 +01:00
Thomas Citharel 15dbc134bd typos (#246)
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-01-25 08:13:19 +01:00
luzpaz 2bb0f9d501 Misc. typos (#245)
Found via `codespell -q 3`
2018-01-25 08:12:42 +01:00
Chocobozzz 5e1c08eb94
Add api doc in html 2018-01-24 11:54:32 +01:00
Chocobozzz 9ee83eb99e
Fix tests 2018-01-24 11:03:13 +01:00
Chocobozzz 59c48d49c5
Peertube home in /var/www instead of /home 2018-01-23 09:00:23 +01:00
Thomas Citharel e5203ffa12 Improve docs (#232)
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-01-23 08:53:15 +01:00
Chocobozzz 451ce9642c
Add commander in dependencies instead of dev dep 2018-01-22 09:42:42 +01:00
Chocobozzz 23e27dd535
Add ability to configure log level 2018-01-19 13:58:13 +01:00
Chocobozzz c7a9f34f72
Add SQL backup/restore commands in production guide 2018-01-19 10:30:35 +01:00
Chocobozzz 2e866cc75d
Don't serve previews with nginx
We need to maintain a cache in the node process
2018-01-18 18:45:27 +01:00
Chocobozzz 5668bf2e51
nginx optimizations 2018-01-18 17:45:49 +01:00
taziden 9625507fec fix 2 other typos (#209) 2018-01-17 11:47:45 +01:00
taziden a5c57bf33e fix typo in production guide (#208) 2018-01-17 11:34:26 +01:00