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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Aurel
slapos
Commits
e2d38d31
Commit
e2d38d31
authored
Aug 07, 2020
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sfu: initial demo software release
parent
c2d63e18
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
155 additions
and
0 deletions
+155
-0
software/sfu/gowork.cfg
software/sfu/gowork.cfg
+12
-0
software/sfu/instance.cfg.in
software/sfu/instance.cfg.in
+92
-0
software/sfu/software.cfg
software/sfu/software.cfg
+51
-0
No files found.
software/sfu/gowork.cfg
0 → 100644
View file @
e2d38d31
# Code generated by gowork-snapshot; DO NOT EDIT.
# list of go git repositories to fetch
[gowork.goinstall]
depends_gitfetch =
${go_src_sfu:recipe}
[go_src_sfu]
<= go-git-package
go.importpath = src/sfu
repository = https://lab.nexedi.com/alain.takoudjou/sfu
revision = 426c1e06d8
software/sfu/instance.cfg.in
0 → 100644
View file @
e2d38d31
[buildout]
parts =
publish-connection-parameter
eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true
[publish-connection-parameter]
recipe = slapos.cookbook:publish
url = https://[$${sfu-wrapper:ip}]:$${sfu-wrapper:port}
admin-user = $${admin-password:username}
admin-password = $${admin-password:passwd}
[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}
[directory]
recipe = slapos.cookbook:mkdirectory
etc = $${buildout:directory}/etc
var = $${buildout:directory}/var
srv = $${buildout:directory}/srv
bin = $${buildout:directory}/bin
tmp = $${buildout:directory}/tmp
run = $${:var}/run
services = $${:etc}/service
data = $${:srv}/data
groups = $${:srv}/groups
recordings = $${:srv}/recordings
[sfu-ssl]
recipe = plone.recipe.command
cert-file = $${directory:data}/cert.pem
key-file = $${directory:data}/key.pem
command = ${openssl:location}/bin/openssl req -newkey rsa:2048 -batch -new -x509 -days 3650 -nodes -keyout "$${:key-file}" -out "$${:cert-file}"
update-command =
stop-on-error = true
[admin-password]
recipe = slapos.cookbook:generate.password
storage-path = $${directory:data}/.passwd
username = admin
[ice-servers.json]
recipe = collective.recipe.template
input = inline:
[{"urls":["stun:stun.l.google.com:19302"]}]
output = $${directory:data}/ice-servers.json
[groups-json]
recipe = collective.recipe.template
input = inline:{
"public":true,
"op":[{"username":"$${admin-password:username}","password":"$${admin-password:passwd}"}],
"presenter":[{}],
"max-users":100
}
output = $${directory:groups}/public.json
[install-static]
recipe = plone.recipe.command
static = $${directory:srv}/static
command =
cp -ax ${sfu-repository:location}/static $${:static}
echo "$${admin-password:username}:$${admin-password:passwd}" > $${directory:data}/passwd
update-command = $${:command}
stop-on-error = true
[sfu-wrapper]
recipe = slapos.cookbook:wrapper
port = 8443
ip = $${slap-configuration:ipv6-random}
command-line =
${sfu:location}/bin/sfu
-static $${install-static:static}
-recordings $${directory:recordings}
-groups $${directory:groups}
-data $${directory:data}
-http [$${:ip}]:$${:port}
wrapper-path = $${directory:services}/sfu
depends =
$${ice-servers.json:recipe}
$${groups-json:recipe}
$${sfu-ssl:recipe}
software/sfu/software.cfg
0 → 100644
View file @
e2d38d31
[buildout]
extends =
../../component/golang/buildout.cfg
../../component/openssl/buildout.cfg
../../stack/slapos.cfg
# ./buildout.hash.cfg
parts =
slapos-cookbook
sfu
eggs
instance
# eggs for instance.cfg
[eggs]
recipe = zc.recipe.egg
eggs =
plone.recipe.command
collective.recipe.template
[sfu-repository]
<= git-repository
repository = https://www.irif.fr/~jch/software/sfu.git
revision = 426c1e06d8
location = ${buildout:parts-directory}/sfu-repository
[sfu]
recipe = slapos.recipe.cmmi
path = ${sfu-repository:location}
location = @@LOCATION@@
golang = ${golang1.13:location}
configure-command = true
make-binary =
make-targets =
go install -ldflags='-s -w'
environment =
PATH=${:location}/bin:${:golang}/bin:${git:location}/bin:${pkgconfig:location}/bin:$PATH
GOPATH=${:location}
CGO_ENABLED=0
[instance]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/${:filename}
mode = 0644
output = ${buildout:directory}/instance.cfg
filename = instance.cfg.in
md5sum = 673e8f20d09381f14a54c4a6cbea3a5b
[versions]
slapos.recipe.template = 4.4
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