Commit 3b64a382 authored by Boxiang Sun's avatar Boxiang Sun

peertube instance fixup

parent a58d1e27
[buildout] [buildout]
extends =
monitor-base
${monitor-template:output}
parts = parts =
publish-connection-parameter peertube-instance
nginx-service nginx-service
nginx-listen-promise nginx-listen-promise
[peertube-instance] eggs-directory = ${buildout:eggs-directory}
recipe = slapos.cookbook:wrapper develop-eggs-directory = ${buildout:develop-eggs-directory}
wrapper-path = $${directory:service}/$${:_buildout_section_name_} offline = true
command-line = cd $${directory:versions}; cp -r ${peertube-download:location} ./
echo $${directory:versions}
environment =
PATH=${unzip:location}/bin:${vim:location}/bin:${nodejs:location}/bin:${yarn:location}/bin:${python3:location}/bin:${nginx:location}/sbin:${postgresql:location}/sbin:${gcc-10.2:location}/bin:${redis:location}/bin:{git:location}/bin:{wget:location}/bin:%(PATH)s
CPPFLAGS=-I${openssl:location}/include
LDFLAGS=-L${curl:location}/lib -Wl,-rpath -Wl,${openssl:location}/lib -Wl,-rpath -Wl
[directory] [directory]
recipe = slapos.cookbook:mkdirectory recipe = slapos.cookbook:mkdirectory
...@@ -30,6 +28,16 @@ storage = $${:srv}/var/www/peertube/storage ...@@ -30,6 +28,16 @@ storage = $${:srv}/var/www/peertube/storage
versions = $${:srv}/var/www/peertube/versions versions = $${:srv}/var/www/peertube/versions
ssl = $${:etc}/ssl ssl = $${:etc}/ssl
[peertube-instance]
recipe = slapos.cookbook:wrapper
wrapper-path = $${directory:services}/$${:_buildout_section_name_}
command-line = cd $${directory:versions}; cp -r ${peertube-download:location} ./
echo $${directory:versions}
environment =
PATH=${unzip:location}/bin:${vim:location}/bin:${nodejs:location}/bin:${yarn:location}/bin:${python3:location}/bin:${nginx:location}/sbin:${postgresql:location}/sbin:${gcc-10.2:location}/bin:${redis:location}/bin:{git:location}/bin:{wget:location}/bin:%(PATH)s
CPPFLAGS=-I${openssl:location}/include
LDFLAGS=-L${curl:location}/lib -Wl,-rpath -Wl,${openssl:location}/lib -Wl,-rpath -Wl
[postgresql-password] [postgresql-password]
recipe = slapos.cookbook:generate.password recipe = slapos.cookbook:generate.password
bytes = 24 bytes = 24
......
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