Initial
This commit is contained in:
commit
363a876c22
88 changed files with 783 additions and 0 deletions
5
ressources/authelia/build
Executable file
5
ressources/authelia/build
Executable 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
9
ressources/authelia/envinit
Executable 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 -
|
8
ressources/authelia/makedeb
Normal file
8
ressources/authelia/makedeb
Normal 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
6
ressources/authelia/prebuild
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
VERSION=$1
|
||||
cd /tmp/
|
||||
git clone https://github.com/authelia/authelia.git
|
||||
cd authelia/
|
||||
git checkout $VERSION
|
0
ressources/authelia/rootfs/DEBIAN/changelog
Normal file
0
ressources/authelia/rootfs/DEBIAN/changelog
Normal file
1
ressources/authelia/rootfs/DEBIAN/conffiles
Normal file
1
ressources/authelia/rootfs/DEBIAN/conffiles
Normal file
|
@ -0,0 +1 @@
|
|||
/etc/authelia/configuration.yml
|
7
ressources/authelia/rootfs/DEBIAN/control
Normal file
7
ressources/authelia/rootfs/DEBIAN/control
Normal file
|
@ -0,0 +1,7 @@
|
|||
Package: authelia
|
||||
Version: %VERSION%
|
||||
Section: base
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
Maintainer: Thomas Legay <thomas@syngate.fr>
|
||||
Description: authelia
|
4
ressources/authelia/rootfs/DEBIAN/postinst
Executable file
4
ressources/authelia/rootfs/DEBIAN/postinst
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
id authelia &> /dev/null || useradd authelia -r -s /bin/false
|
||||
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue