Initial
This commit is contained in:
commit
363a876c22
88 changed files with 783 additions and 0 deletions
4
ressources/element-web/build
Executable file
4
ressources/element-web/build
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
cd /tmp/element-web
|
||||
yarn install
|
||||
yarn dist
|
7
ressources/element-web/envinit
Executable file
7
ressources/element-web/envinit
Executable file
|
@ -0,0 +1,7 @@
|
|||
#/bin/bash
|
||||
apt install -y build-essential git python wget ca-certificates
|
||||
wget -qO - https://deb.nodesource.com/setup_16.x | bash
|
||||
wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarnkey.gpg
|
||||
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list
|
||||
apt-get update
|
||||
apt-get install -y yarn nodejs
|
7
ressources/element-web/makedeb
Normal file
7
ressources/element-web/makedeb
Normal file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
PATH_BUILD=$1
|
||||
PATH_DEB=$2
|
||||
GIT_VERSION=$3
|
||||
|
||||
tar -zxf ${PATH_BUILD}/tmp/element-web/dist/element-${GIT_VERSION}-dirty.tar.gz --strip-components=1 -C ${PATH_DEB}/usr/lib/element-web/
|
||||
cp ${PATH_DEB}/usr/lib/element-web/config.sample.json ${PATH_DEB}/etc/element-web/config.json
|
6
ressources/element-web/prebuild
Executable file
6
ressources/element-web/prebuild
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
VERSION=$1
|
||||
cd /tmp/
|
||||
git clone https://github.com/vector-im/element-web.git
|
||||
cd element-web/
|
||||
git checkout $VERSION
|
0
ressources/element-web/rootfs/DEBIAN/changelog
Normal file
0
ressources/element-web/rootfs/DEBIAN/changelog
Normal file
1
ressources/element-web/rootfs/DEBIAN/conffiles
Normal file
1
ressources/element-web/rootfs/DEBIAN/conffiles
Normal file
|
@ -0,0 +1 @@
|
|||
/etc/element-web/config.json
|
7
ressources/element-web/rootfs/DEBIAN/control
Normal file
7
ressources/element-web/rootfs/DEBIAN/control
Normal file
|
@ -0,0 +1,7 @@
|
|||
Package: element-web
|
||||
Version: %VERSION%
|
||||
Section: base
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
Maintainer: Thomas Legay <thomas@syngate.fr>
|
||||
Description: element-web
|
|
@ -0,0 +1,26 @@
|
|||
<VirtualHost *:80>
|
||||
ServerName first.domaine.com
|
||||
ServerAlias second.domaine.com
|
||||
ServerAlias third.domaine.com
|
||||
|
||||
DocumentRoot /usr/lib/element-web
|
||||
Protocols h2c http/1.1
|
||||
|
||||
#default config ie first and third domaine
|
||||
Alias /config.json /etc/element-web/config.json
|
||||
|
||||
#config for second domaine
|
||||
Alias /config.second.domaine.com.json /etc/element-web/config.second.domaine.com.json
|
||||
|
||||
<directory /usr/lib/element-web>
|
||||
Options none
|
||||
AllowOverride None
|
||||
Require all granted
|
||||
</directory>
|
||||
|
||||
<directory /etc/element-web>
|
||||
Options none
|
||||
AllowOverride None
|
||||
Require all granted
|
||||
</directory>
|
||||
</VirtualHost>
|
Loading…
Add table
Add a link
Reference in a new issue