-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
93 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
name: "Package phpldapadmin" | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- test | ||
- dev | ||
paths: | ||
- 'phpldapadmin/**' | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
package-phpldapadmin: | ||
uses: "./.github/workflows/package.yml" | ||
with: | ||
name: phpldapadmin | ||
path: phpldapadmin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.2.6.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
FROM alpine:3.19 | ||
|
||
ARG APP_VERSION | ||
|
||
RUN set -ex; \ | ||
apk add --no-cache \ | ||
apache2 \ | ||
curl \ | ||
shadow \ | ||
util-linux \ | ||
php82 \ | ||
php82-apache2 \ | ||
php82-ldap \ | ||
php82-gettext \ | ||
php82-mbstring \ | ||
php82-opcache \ | ||
php82-openssl \ | ||
php82-session \ | ||
php82-xml \ | ||
php82-pecl-apcu \ | ||
rm -f /etc/apache2/conf.d/info.conf; \ | ||
rm -f /etc/apache2/conf.d/userdir.conf; \ | ||
ln -sf /usr/bin/php82 /usr/bin/php; | ||
|
||
COPY php.conf.d/ /etc/php82/conf.d/ | ||
COPY apache2.conf.d/ /etc/apache2/conf.d/ | ||
|
||
RUN set -ex; \ | ||
sed -i -e 's|^#\(LoadModule remoteip_module.*\)|\1|' /etc/apache2/httpd.conf | ||
|
||
RUN set -ex; \ | ||
curl -fsSL -o "phpLDAPadmin-${APP_VERSION}.tar.gz" \ | ||
"https://github.com/leenooks/phpLDAPadmin/archive/${APP_VERSION}.tar.gz"; \ | ||
mkdir -p /var/www/phpldapadmin; \ | ||
tar -xzf "phpLDAPadmin-${APP_VERSION}.tar.gz" --strip-components=1 -C /var/www/phpldapadmin; \ | ||
rm "phpLDAPadmin-${APP_VERSION}.tar.gz"; | ||
|
||
COPY entrypoint.sh / | ||
|
||
STOPSIGNAL SIGWINCH | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] | ||
CMD ["httpd", "-DFOREGROUND"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
ServerTokens Prod | ||
ServerSignature Off | ||
|
||
EnableMMAP Off | ||
EnableSendfile On |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
DocumentRoot "/var/www/phpldapadmin" | ||
<Directory "/var/www/phpldapadmin"> | ||
DirectoryIndex index.php | ||
AllowOverride All | ||
Options FollowSymlinks | ||
Require all granted | ||
</Directory> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<IfModule remoteip> | ||
RemoteIPHeader X-Real-IP | ||
RemoteIPInternalProxy 10.0.0.0/8 | ||
RemoteIPInternalProxy 172.16.0.0/12 | ||
RemoteIPInternalProxy 192.168.0.0/16 | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
apc.enable_cli=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
opcache.enable=1 | ||
opcache.interned_strings_buffer=32 | ||
opcache.max_accelerated_files=16229 | ||
opcache.memory_consumption=256 | ||
opcache.save_comments=1 | ||
opcache.revalidate_freq=60 | ||
opcache.jit=1255 | ||
opcache.jit_buffer_size=256M |