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
0366682a
Commit
0366682a
authored
Nov 25, 2022
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
peertube: fixup
parent
818f087f
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
18 deletions
+17
-18
component/postgresql/buildout.cfg
component/postgresql/buildout.cfg
+1
-0
software/peertube/buildout.hash.cfg
software/peertube/buildout.hash.cfg
+2
-2
software/peertube/instance-peertube-output-schema.json
software/peertube/instance-peertube-output-schema.json
+4
-0
software/peertube/instance-peertube.cfg.in
software/peertube/instance-peertube.cfg.in
+5
-6
software/peertube/instance.cfg.in
software/peertube/instance.cfg.in
+4
-4
software/peertube/software.cfg
software/peertube/software.cfg
+0
-2
software/theia/test/project_tests.py
software/theia/test/project_tests.py
+1
-4
No files found.
component/postgresql/buildout.cfg
View file @
0366682a
...
...
@@ -29,6 +29,7 @@ configure-options =
--without-libxml
--without-libxslt
# build core PostgreSQL + pg_trgm contrib extension for GitLab
# unaccent contrib extension is for peertube
make-targets = install && make -C contrib/pg_trgm/ install && make -C contrib/unaccent/ install
environment =
CPPFLAGS=-I${zlib:location}/include -I${readline:location}/include -I${openssl:location}/include -I${ncurses:location}/lib
...
...
software/peertube/buildout.hash.cfg
View file @
0366682a
...
...
@@ -14,11 +14,11 @@
# not need these here).
[instance-profile]
filename = instance.cfg.in
md5sum =
b67bad9012a8f79c66779d4c660828e2
md5sum =
35690065ba18dc49d0108fc1f0a07b9e
[instance-peertube]
_update_hash_filename_ = instance-peertube.cfg.in
md5sum =
3096a4d3e117752b4827925129d61331
md5sum =
0bc5a5fbf922fc884f00038f19faa147
[template-nginx-service]
filename = template-nginx-service.sh.in
...
...
software/peertube/instance-peertube-output-schema.json
View file @
0366682a
...
...
@@ -2,6 +2,10 @@
"$schema"
:
"http://json-schema.org/draft-04/schema#"
,
"description"
:
"Values returned by Peertube instanciation"
,
"properties"
:
{
"frontend-url"
:
{
"description"
:
"Peertube Frontend URL"
,
"type"
:
"string"
},
"backend-url"
:
{
"description"
:
"Peertube Backend URL"
,
"type"
:
"string"
...
...
software/peertube/instance-peertube.cfg.in
View file @
0366682a
...
...
@@ -77,7 +77,7 @@ link-binary = ${postgresql:bin}/postgres ${postgresql:bin}/psql
[nginx-service]
recipe = slapos.recipe.template
url = {{ temp
al
te_nginx_service }}
url = {{ temp
la
te_nginx_service }}
output = ${directory:services}/nginx
virtual-depends =
${nginx-configuration:ip}
...
...
@@ -162,7 +162,7 @@ config-url = ${peertube-parameters:frontend-url}
[peertube-service]
recipe = slapos.recipe.template
url = {{ temp
al
te_peertube_service }}
url = {{ temp
la
te_peertube_service }}
output = ${directory:services}/peertube
[peertube-database-resiliency-exclude-file]
...
...
@@ -172,7 +172,7 @@ output = ${directory:srv}/exporter.exclude
[peertube-database-resiliency-after-import-script]
recipe = slapos.recipe.template
url = {{ temp
al
te_peertube_restore }}
url = {{ temp
la
te_peertube_restore }}
output = ${directory:srv}/runner-import-restore
mode = 755
...
...
@@ -187,7 +187,7 @@ logfile = ${directory:log}/crond.log
[peertube-backup-script]
recipe = slapos.recipe.template
url = {{ temp
al
te_peertube_backup }}
url = {{ temp
la
te_peertube_backup }}
output = ${directory:etc}/${:_buildout_section_name_}
mode = 0744
...
...
@@ -272,8 +272,7 @@ init =
[publish-connection-parameter]
recipe = slapos.cookbook:publish
frontend-hostname = ${frontend:connection-domain}
backend-url = ${frontend:config-url}
frontend-url = ${peertube-parameters:frontend-url}
password = ${peertube-passwd:passwd}
username =
root
username =
${peertube-passwd:username}
software/peertube/instance.cfg.in
View file @
0366682a
...
...
@@ -19,13 +19,13 @@ context =
raw ipv4_random $${slap-configuration:ipv4-random}
raw template_peertube_yaml ${template-peertube-yaml:output}
raw template_nginx_configration ${template-nginx-configuration:output}
raw temp
al
te_peertube_service ${template-peertube-service:output}
raw temp
al
te_peertube_restore ${template-peertube-restore-script:output}
raw temp
la
te_peertube_service ${template-peertube-service:output}
raw temp
la
te_peertube_restore ${template-peertube-restore-script:output}
raw postgresql10_location ${postgresql10:location}
raw temp
al
te_nginx_service ${template-nginx-service:output}
raw temp
la
te_nginx_service ${template-nginx-service:output}
raw redis_binprefix ${redis28:location}/bin
raw template_dcron_service ${template-dcron-service:output}
raw temp
al
te_peertube_backup ${template-peertube-backup-script:output}
raw temp
la
te_peertube_backup ${template-peertube-backup-script:output}
raw template_crontab_line ${template-crontab-line:output}
raw coreutils_cat ${coreutils-output:cat}
raw template_crontab ${template-crontab:output}
...
...
software/peertube/software.cfg
View file @
0366682a
...
...
@@ -43,7 +43,6 @@ parts =
gcc
unzip
curl
vim
nodejs
yarn
openssl
...
...
@@ -52,7 +51,6 @@ parts =
ffmpeg
postgresql
redis
git
wget
# peetube sections
peertube
...
...
software/theia/test/project_tests.py
View file @
0366682a
...
...
@@ -119,7 +119,7 @@ class ERP5Mixin(object):
instance_type
,
'srv'
,
'runner'
,
'instance'
,
partition
,
*
paths
)
class
Test
ERP5
ResilienceERP5
(
ERP5Mixin
,
test_resiliency
.
TestTheiaResilience
):
class
Test
Theia
ResilienceERP5
(
ERP5Mixin
,
test_resiliency
.
TestTheiaResilience
):
test_instance_max_retries
=
12
backup_max_tries
=
480
backup_wait_interval
=
60
...
...
@@ -267,9 +267,6 @@ class TestTheiaResiliencePeertube(test_resiliency.TestTheiaResilience):
peertube_conenction_info
=
self
.
_getPeertubeConnexionParameters
()
frontend_url
=
peertube_conenction_info
[
'frontend-url'
]
# frontend_url: https://[2001:67c:1254:fd::9ee2]:9443
# self.connection_parameters
# {'backend-url': 'https://[2001:67c:1254:fd::9ee2]:9443', 'frontend-hostname': '[2001:67c:1254:fd::9ee2]:9443', 'frontend-url': 'https://[2001:67c:1254:fd::9ee2]:9443', 'password': '8ydTfRpv', 'username': 'root'}
response
=
requests
.
get
(
frontend_url
+
'/api/v1/oauth-clients/local'
,
verify
=
False
)
self
.
assertEqual
(
requests
.
codes
[
'OK'
],
response
.
status_code
)
try
:
...
...
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