This commit is contained in:
root 2022-01-23 21:49:01 +01:00
commit 363a876c22
88 changed files with 783 additions and 0 deletions

5
ressources/authelia/build Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
cd /tmp/authelia/
. /root/.bashrc
PATH=$PATH:/usr/local/go/bin bash bootstrap.sh
PATH=$PATH:/usr/local/go/bin ./cmd/authelia-scripts/authelia-scripts build

9
ressources/authelia/envinit Executable file
View file

@ -0,0 +1,9 @@
#/bin/bash
apt install -y build-essential git 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 nodejs
wget -qO - https://go.dev/dl/go1.17.3.linux-amd64.tar.gz | tar -C /usr/local -xz
wget -qO - https://get.pnpm.io/install.sh | sh -

View file

@ -0,0 +1,8 @@
#!/bin/bash
PATH_BUILD=$1
PATH_DEB=$2
GIT_VERSION=$3
cp ${PATH_BUILD}/tmp/authelia/dist/authelia ${PATH_DEB}/usr/bin/authelia
cp ${PATH_BUILD}/tmp/authelia/config.template.yml ${PATH_DEB}/etc/authelia/configuration.yml

6
ressources/authelia/prebuild Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
VERSION=$1
cd /tmp/
git clone https://github.com/authelia/authelia.git
cd authelia/
git checkout $VERSION

View file

@ -0,0 +1 @@
/etc/authelia/configuration.yml

View file

@ -0,0 +1,7 @@
Package: authelia
Version: %VERSION%
Section: base
Priority: optional
Architecture: all
Maintainer: Thomas Legay <thomas@syngate.fr>
Description: authelia

View file

@ -0,0 +1,4 @@
#!/bin/bash
id authelia &> /dev/null || useradd authelia -r -s /bin/false

View file

@ -0,0 +1,12 @@
[Unit]
Description=Authelia authentication and authorization server
After=multi-user.target
[Service]
User=authelia
Group=authelia
ExecStart=/usr/lib/authelia/authelia --config /etc/authelia/configuration.yml
SyslogIdentifier=authelia
[Install]
WantedBy=multi-user.target