Commit 516caa6e authored by Boxiang Sun's avatar Boxiang Sun

theia: peertube test fixup

parent 4285184d
......@@ -18,7 +18,7 @@ md5sum = 9eed4136d9d6f8f855b73bbfefa6397c
[instance-peertube]
_update_hash_filename_ = instance-peertube.cfg.in
md5sum = 148c33e23cdd71e017c9d580504e4b34
md5sum = c097b0ad9ea49bef467e45a4ec1f0c3d
[template-nginx-service]
filename = template-nginx-service.sh.in
......@@ -30,11 +30,11 @@ md5sum = 8e01664a59ac8c148075a87aabd04fef
[template-peertube-yaml]
filename = template-peertube.yaml.in
md5sum = 30f1b3f46581fc6f922f5880975f3191
md5sum = e761995c4c18efc4a199f11dc8fde039
[template-nginx-configuration]
filename = template-nginx.cfg.in
md5sum = bd4a11cf9a263cba6ea0d12c4f73eb62
md5sum = e973d4ab970aaef784defb22bf8fa05a
[template-dcron-service]
filename = template-dcron-service.sh.in
......
......@@ -162,7 +162,7 @@ output = ${directory:config}/peertube.yaml
promise = check_url_available
name = peertube_listen.py
config-verify = 0
config-url = https://${frontend:connection-domain}
config-url = ${peertube-parameters:frontend-url}
[peertube-service]
recipe = slapos.recipe.template
......@@ -226,7 +226,7 @@ return = domain secure_access
[peertube-parameters]
recipe = slapos.recipe.build
slapparameter-dict = {{ dumps(slapparameter_dict) }}
default-frontend-url = ${frontend:config-url}
default-frontend-url = ${frontend:connection-secure_access}
working-dir = {{ peertube_location }}
ipv4-port=9000
node-config-dir=${directory:config}
......
......@@ -83,7 +83,7 @@ server {
location @api {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_set_header Host $html_host;
proxy_set_header X-Real-IP $remote_addr;
client_max_body_size 100k; # default is 1M
......
......@@ -5,8 +5,6 @@ listen:
# Correspond to your reverse proxy server_name/listen configuration (i.e., your public PeerTube instance URL)
webserver:
https: true
# hostname: 'softinst176929.host.vifib.net'
# port: 443
hostname: '$${peertube-parameters:host}'
port: $${peertube-parameters:port}
......
......@@ -253,6 +253,7 @@ class TestTheiaResiliencePeertube(test_resiliency.TestTheiaResilience):
postgresql_partition = self._getPeertubePartitionPath('export', 'postgres')
postgresql_bin = os.path.join(postgresql_partition, 'bin', 'psql')
postgres_bin = os.path.join(postgresql_partition, 'bin', 'postgres')
raise NotImplementedError(os.listdir(postgresql_partition), os.listdir(os.path.join(postgresql_partition, 'srv')))
postgresql_srv = os.path.join(postgresql_partition, 'srv', 'postgresql')
# Change the email address of the user 'peertube'
......
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