Commit b947fc9a authored by Boxiang Sun's avatar Boxiang Sun

peertube: Allow to add parameters from panel

parent fa972a7d
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"description": "Parameters to instantiate Peertube",
"additionalProperties": false,
"properties": {
"name": {
"description": "Instance Title",
"default": "Peertube in Slapos",
"type": "string"
},
"short_description": {
"description": "PeerTube short description",
"default": "PeerTube, an ActivityPub-federated video streaming platform using P2P directly in your web browser.",
"type": "string"
},
"description": {
"description": "Peertube instance description",
"default": "Welcome to this PeerTube instance!",
"type": "string"
},
"terms": {
"description": "",
"default": "No terms for now.",
"type": "string"
},
"code_of_conduct": {
"description": "",
"default": "",
"type": "string"
},
"moderation_information": {
"description": "Who moderates the instance? What is the policy regarding NSFW videos? Political videos? etc",
"default": "",
"type": "string"
},
"creation_reason": {
"description": "Why did you create this instance?",
"default": "",
"type": "string"
},
"administrator": {
"description": "Who is behind the instance? A single person? A non profit?",
"default": "",
"type": "string"
},
"maintenance_lifetime": {
"description": "How long do you plan to maintain this instance?",
"default": "",
"type": "string"
},
"business_model": {
"description": "How will you pay the PeerTube instance server? With your own funds? With users donations? Advertising?",
"default": "",
"type": "string"
},
"hardware_information": {
"description": "",
"default": "",
"type": "string"
}
}
}
......@@ -158,6 +158,33 @@ slave = true
config-url = https://[$${nginx-configuration:ip}]:$${nginx-configuration:port}
return = domain secure_access
[slap-configuration]
recipe = slapos.cookbook:slapconfiguration
computer = $${slap_connection:computer_id}
partition = $${slap_connection:partition_id}
url = $${slap_connection:server_url}
key = $${slap_connection:key_file}
cert = $${slap_connection:cert_file}
short_description = 'PeerTube, an ActivityPub-federated video streaming platform using P2P directly in your web browser.'
description = 'Welcome to this PeerTube instance!'
terms = 'No terms for now.'
[peertube-text-content]
recipe = slapos.recipe.build
slapparameter-dict = $${slap-configuration:configuration}
init =
options['name'] = options['slapparameter-dict'].get('name') or 'Peertube in Slapos'
options['short_description'] = options['slapparameter-dict'].get('short_description') or ''
options['description'] = options['slapparameter-dict'].get('description') or ''
options['terms'] = options['slapparameter-dict'].get('terms') or ''
options['code_of_conduct'] = options['slapparameter-dict'].get('code_of_conduct') or ''
options['moderation_information'] = options['slapparameter-dict'].get('moderation_information') or ''
options['creation_reason'] = options['slapparameter-dict'].get('creation_reason') or ''
options['administrator'] = options['slapparameter-dict'].get('administrator') or ''
options['maintenance_lifetime'] = options['slapparameter-dict'].get('maintenance_lifetime') or ''
options['business_model'] = options['slapparameter-dict'].get('business_model') or ''
options['hardware_information'] = options['slapparameter-dict'].get('hardware_information') or ''
[publish-connection-parameter]
recipe = slapos.cookbook:publish
frontend-url = $${frontend:connection-secure_access}
......
{
"name": "Peertube",
"description": "Peertube Website Text",
"serialisation": "json-in-xml",
"software-type": {
"default": {
"title": "Default",
"software-type": "default",
"description": "Default",
"request": "instance-peertube-input-schema.json",
"index": 1
}
}
}
......@@ -286,7 +286,7 @@ plugins:
# The website PeerTube will ask for available PeerTube plugins and themes
# This is an unmoderated plugin index, so only install plugins/themes you trust
index:
enabled: false
enabled: true
check_latest_versions_interval: '12 hours' # How often you want to check new plugins/themes versions
url: 'https://packages.joinpeertube.org'
......@@ -564,30 +564,30 @@ auto_blacklist:
# Instance settings
instance:
name: 'PeerTube'
short_description: 'PeerTube, an ActivityPub-federated video streaming platform using P2P directly in your web browser.'
description: 'Welcome to this PeerTube instance!' # Support markdown
terms: 'No terms for now.' # Support markdown
code_of_conduct: '' # Supports markdown
name: '$${peertube-text-content:name}' #'Peertube'
short_description: '$${peertube-text-content:short_description}'
description: '$${peertube-text-content:description}'
terms: '$${peertube-text-content:terms}'
code_of_conduct: '$${peertube-text-content:code_of_conduct}'
# Who moderates the instance? What is the policy regarding NSFW videos? Political videos? etc
moderation_information: '' # Supports markdown
moderation_information: '$${peertube-text-content:moderation_information}'
# Why did you create this instance?
creation_reason: '' # Supports Markdown
creation_reason: '$${peertube-text-content:creation_reason}'
# Who is behind the instance? A single person? A non profit?
administrator: '' # Supports Markdown
administrator: '$${peertube-text-content:administrator}'
# How long do you plan to maintain this instance?
maintenance_lifetime: '' # Supports Markdown
maintenance_lifetime: '$${peertube-text-content:maintenance_lifetime}'
# How will you pay the PeerTube instance server? With your own funds? With users donations? Advertising?
business_model: '' # Supports Markdown
business_model: '$${peertube-text-content:business_model}'
# If you want to explain on what type of hardware your PeerTube instance runs
# Example: '2 vCore, 2GB RAM...'
hardware_information: '' # Supports Markdown
hardware_information: '$${peertube-text-content:hardware_information}'
# What are the main languages of your instance? To interact with your users for example
# Uncomment or add the languages you want
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment