- Domain Name
- Main Dedicated Server
- Private FTP Backups Server
General budget: from ~17€ to ~100€ per month
PEERTUBE_DB_USERNAME=postgres_user | |
PEERTUBE_DB_PASSWORD=postgres_password | |
PEERTUBE_WEBSERVER_HOSTNAME=domain.tld | |
# If you need more than one IP as trust_proxy | |
# pass them as a comma separated array: | |
PEERTUBE_TRUST_PROXY=["127.0.0.1", "loopback", "172.18.0.0/16"] | |
#PEERTUBE_SMTP_USERNAME= | |
#PEERTUBE_SMTP_PASSWORD= | |
PEERTUBE_SMTP_HOSTNAME=postfix | |
PEERTUBE_SMTP_PORT=25 |
if (is_admin() && !current_user_can('administrator')) { | |
add_action('profile_personal_options', 'remove_profile_fields'); | |
function remove_profile_fields() { | |
?> | |
<style> | |
#your-profile h2, /* hide profile titles */ | |
.user-rich-editing-wrap, | |
.user-syntax-highlighting-wrap, | |
.user-admin-color-wrap, |
if (is_admin()) { | |
function remove_draft_preview () { | |
?> | |
<style> | |
#minor-publishing-actions { | |
padding-top: 0; | |
} | |
#save-action #save-post, #save-action .spinner { | |
margin-top: 10px; | |
} |
function disable_content_editor () { | |
$pages_ids = array(2); // add your page / post id here | |
if ($_GET['post']) { | |
$post_id = $_GET['post']; | |
} else { | |
$post_id = $_POST['post_ID']; | |
} | |
if (!isset($post_id)) return; |
function remove_quick_edit($actions) { | |
unset($actions['inline hide-if-no-js']); | |
return $actions; | |
} | |
if (!current_user_can('manage_options')) { | |
add_filter('page_row_actions', 'remove_quick_edit', 10, 1); | |
add_filter('post_row_actions', 'remove_quick_edit', 10, 1); | |
} |
version: "3.3" | |
services: | |
postgres: | |
image: postgres:10-alpine | |
environment: | |
- POSTGRES_DB=peertube_dev | |
- POSTGRES_USER=peertube | |
- POSTGRES_PASSWORD=peertube |
Automatic production setup with docker-compose for a PeerTube instance.
You must install docker and docker-compose.
You also must be logged as root for a full setup with systemd.
'use strict' | |
const crypto = require('crypto') | |
const path = require('path') | |
const mudb = require('mudb') | |
const { STORAGE, SALT } = process.env | |
let db |