Commit 0366682a authored by Boxiang Sun's avatar Boxiang Sun

peertube: fixup

parent 818f087f
...@@ -29,6 +29,7 @@ configure-options = ...@@ -29,6 +29,7 @@ configure-options =
--without-libxml --without-libxml
--without-libxslt --without-libxslt
# build core PostgreSQL + pg_trgm contrib extension for GitLab # 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 make-targets = install && make -C contrib/pg_trgm/ install && make -C contrib/unaccent/ install
environment = environment =
CPPFLAGS=-I${zlib:location}/include -I${readline:location}/include -I${openssl:location}/include -I${ncurses:location}/lib CPPFLAGS=-I${zlib:location}/include -I${readline:location}/include -I${openssl:location}/include -I${ncurses:location}/lib
......
...@@ -14,11 +14,11 @@ ...@@ -14,11 +14,11 @@
# not need these here). # not need these here).
[instance-profile] [instance-profile]
filename = instance.cfg.in filename = instance.cfg.in
md5sum = b67bad9012a8f79c66779d4c660828e2 md5sum = 35690065ba18dc49d0108fc1f0a07b9e
[instance-peertube] [instance-peertube]
_update_hash_filename_ = instance-peertube.cfg.in _update_hash_filename_ = instance-peertube.cfg.in
md5sum = 3096a4d3e117752b4827925129d61331 md5sum = 0bc5a5fbf922fc884f00038f19faa147
[template-nginx-service] [template-nginx-service]
filename = template-nginx-service.sh.in filename = template-nginx-service.sh.in
......
...@@ -2,6 +2,10 @@ ...@@ -2,6 +2,10 @@
"$schema": "http://json-schema.org/draft-04/schema#", "$schema": "http://json-schema.org/draft-04/schema#",
"description": "Values returned by Peertube instanciation", "description": "Values returned by Peertube instanciation",
"properties": { "properties": {
"frontend-url": {
"description": "Peertube Frontend URL",
"type": "string"
},
"backend-url": { "backend-url": {
"description": "Peertube Backend URL", "description": "Peertube Backend URL",
"type": "string" "type": "string"
......
...@@ -77,7 +77,7 @@ link-binary = ${postgresql:bin}/postgres ${postgresql:bin}/psql ...@@ -77,7 +77,7 @@ link-binary = ${postgresql:bin}/postgres ${postgresql:bin}/psql
[nginx-service] [nginx-service]
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = {{ tempalte_nginx_service }} url = {{ template_nginx_service }}
output = ${directory:services}/nginx output = ${directory:services}/nginx
virtual-depends = virtual-depends =
${nginx-configuration:ip} ${nginx-configuration:ip}
...@@ -162,7 +162,7 @@ config-url = ${peertube-parameters:frontend-url} ...@@ -162,7 +162,7 @@ config-url = ${peertube-parameters:frontend-url}
[peertube-service] [peertube-service]
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = {{ tempalte_peertube_service }} url = {{ template_peertube_service }}
output = ${directory:services}/peertube output = ${directory:services}/peertube
[peertube-database-resiliency-exclude-file] [peertube-database-resiliency-exclude-file]
...@@ -172,7 +172,7 @@ output = ${directory:srv}/exporter.exclude ...@@ -172,7 +172,7 @@ output = ${directory:srv}/exporter.exclude
[peertube-database-resiliency-after-import-script] [peertube-database-resiliency-after-import-script]
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = {{ tempalte_peertube_restore }} url = {{ template_peertube_restore }}
output = ${directory:srv}/runner-import-restore output = ${directory:srv}/runner-import-restore
mode = 755 mode = 755
...@@ -187,7 +187,7 @@ logfile = ${directory:log}/crond.log ...@@ -187,7 +187,7 @@ logfile = ${directory:log}/crond.log
[peertube-backup-script] [peertube-backup-script]
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = {{ tempalte_peertube_backup }} url = {{ template_peertube_backup }}
output = ${directory:etc}/${:_buildout_section_name_} output = ${directory:etc}/${:_buildout_section_name_}
mode = 0744 mode = 0744
...@@ -272,8 +272,7 @@ init = ...@@ -272,8 +272,7 @@ init =
[publish-connection-parameter] [publish-connection-parameter]
recipe = slapos.cookbook:publish recipe = slapos.cookbook:publish
frontend-hostname = ${frontend:connection-domain}
backend-url = ${frontend:config-url} backend-url = ${frontend:config-url}
frontend-url = ${peertube-parameters:frontend-url} frontend-url = ${peertube-parameters:frontend-url}
password = ${peertube-passwd:passwd} password = ${peertube-passwd:passwd}
username = root username = ${peertube-passwd:username}
...@@ -19,13 +19,13 @@ context = ...@@ -19,13 +19,13 @@ context =
raw ipv4_random $${slap-configuration:ipv4-random} raw ipv4_random $${slap-configuration:ipv4-random}
raw template_peertube_yaml ${template-peertube-yaml:output} raw template_peertube_yaml ${template-peertube-yaml:output}
raw template_nginx_configration ${template-nginx-configuration:output} raw template_nginx_configration ${template-nginx-configuration:output}
raw tempalte_peertube_service ${template-peertube-service:output} raw template_peertube_service ${template-peertube-service:output}
raw tempalte_peertube_restore ${template-peertube-restore-script:output} raw template_peertube_restore ${template-peertube-restore-script:output}
raw postgresql10_location ${postgresql10:location} raw postgresql10_location ${postgresql10:location}
raw tempalte_nginx_service ${template-nginx-service:output} raw template_nginx_service ${template-nginx-service:output}
raw redis_binprefix ${redis28:location}/bin raw redis_binprefix ${redis28:location}/bin
raw template_dcron_service ${template-dcron-service:output} raw template_dcron_service ${template-dcron-service:output}
raw tempalte_peertube_backup ${template-peertube-backup-script:output} raw template_peertube_backup ${template-peertube-backup-script:output}
raw template_crontab_line ${template-crontab-line:output} raw template_crontab_line ${template-crontab-line:output}
raw coreutils_cat ${coreutils-output:cat} raw coreutils_cat ${coreutils-output:cat}
raw template_crontab ${template-crontab:output} raw template_crontab ${template-crontab:output}
......
...@@ -43,7 +43,6 @@ parts = ...@@ -43,7 +43,6 @@ parts =
gcc gcc
unzip unzip
curl curl
vim
nodejs nodejs
yarn yarn
openssl openssl
...@@ -52,7 +51,6 @@ parts = ...@@ -52,7 +51,6 @@ parts =
ffmpeg ffmpeg
postgresql postgresql
redis redis
git
wget wget
# peetube sections # peetube sections
peertube peertube
......
...@@ -119,7 +119,7 @@ class ERP5Mixin(object): ...@@ -119,7 +119,7 @@ class ERP5Mixin(object):
instance_type, 'srv', 'runner', 'instance', partition, *paths) instance_type, 'srv', 'runner', 'instance', partition, *paths)
class TestERP5ResilienceERP5(ERP5Mixin, test_resiliency.TestTheiaResilience): class TestTheiaResilienceERP5(ERP5Mixin, test_resiliency.TestTheiaResilience):
test_instance_max_retries = 12 test_instance_max_retries = 12
backup_max_tries = 480 backup_max_tries = 480
backup_wait_interval = 60 backup_wait_interval = 60
...@@ -267,9 +267,6 @@ class TestTheiaResiliencePeertube(test_resiliency.TestTheiaResilience): ...@@ -267,9 +267,6 @@ class TestTheiaResiliencePeertube(test_resiliency.TestTheiaResilience):
peertube_conenction_info = self._getPeertubeConnexionParameters() peertube_conenction_info = self._getPeertubeConnexionParameters()
frontend_url = peertube_conenction_info['frontend-url'] 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) response = requests.get(frontend_url + '/api/v1/oauth-clients/local', verify=False)
self.assertEqual(requests.codes['OK'], response.status_code) self.assertEqual(requests.codes['OK'], response.status_code)
try: try:
......
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