Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
slapos
Commits
b947fc9a
Commit
b947fc9a
authored
Nov 02, 2022
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
peertube: Allow to add parameters from panel
parent
fa972a7d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
116 additions
and
12 deletions
+116
-12
software/peertube/instance-peertube-input-schema.json
software/peertube/instance-peertube-input-schema.json
+63
-0
software/peertube/instance.cfg.in
software/peertube/instance.cfg.in
+27
-0
software/peertube/software.cfg.json
software/peertube/software.cfg.json
+14
-0
software/peertube/template-peertube.yaml.in
software/peertube/template-peertube.yaml.in
+12
-12
No files found.
software/peertube/instance-peertube-input-schema.json
0 → 100644
View file @
b947fc9a
{
"$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"
}
}
}
software/peertube/instance.cfg.in
View file @
b947fc9a
...
...
@@ -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}
...
...
software/peertube/software.cfg.json
0 → 100644
View file @
b947fc9a
{
"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
}
}
}
software/peertube/template-peertube.yaml.in
View file @
b947fc9a
...
...
@@ -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:
fals
e
enabled:
tru
e
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: '
PeerT
ube'
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}' #'Peert
ube'
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment