Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MFA Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
MFA Server
Commits
43c01176
Commit
43c01176
authored
1 week ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Plain Diff
Merge branch 'add-appmonitor-check' into 'main'
Add appmonitor check See merge request
!48
parents
cc21fad5
c7113476
No related branches found
No related tags found
1 merge request
!48
Add appmonitor check
Pipeline
#5417
passed
1 week ago
Stage: deploy
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
docker/.env
+1
-1
1 addition, 1 deletion
docker/.env
docker/init.sh.cfg
+1
-1
1 addition, 1 deletion
docker/init.sh.cfg
public_html/appmonitor/index.php
+17
-33
17 additions, 33 deletions
public_html/appmonitor/index.php
with
19 additions
and
35 deletions
docker/.env
+
1
−
1
View file @
43c01176
...
@@ -11,6 +11,6 @@ APP_NAME=mfa
...
@@ -11,6 +11,6 @@ APP_NAME=mfa
# uid of www-data in the docker container
# uid of www-data in the docker container
DOCKER_USER_UID=33
DOCKER_USER_UID=33
APP_PORT=801
6
APP_PORT=801
8
WEBROOT=/var/www/mfa/public_html
WEBROOT=/var/www/mfa/public_html
This diff is collapsed.
Click to expand it.
docker/init.sh.cfg
+
1
−
1
View file @
43c01176
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
APP_NAME
=
mfa
APP_NAME
=
mfa
# web port 80 in container is seen on localhost as ...
# web port 80 in container is seen on localhost as ...
APP_PORT
=
801
6
APP_PORT
=
801
8
# APP_APT_PACKAGES="git unzip zip"
# APP_APT_PACKAGES="git unzip zip"
APP_APT_PACKAGES
=
"git unzip zip"
APP_APT_PACKAGES
=
"git unzip zip"
...
...
This diff is collapsed.
Click to expand it.
public_html/appmonitor/index.php
+
17
−
33
View file @
43c01176
...
@@ -75,7 +75,7 @@ $sDocroot=realpath(__DIR__.'/../');
...
@@ -75,7 +75,7 @@ $sDocroot=realpath(__DIR__.'/../');
*/
*/
$aDirs2Check
=
[
$aDirs2Check
=
[
"/admin"
=>
[
"/admin"
=>
[
"http
Deny
"
=>
[
"http
Login
"
=>
[
"/admin/"
"/admin/"
],
],
],
],
...
@@ -103,38 +103,6 @@ $aDirs2Check=[
...
@@ -103,38 +103,6 @@ $aDirs2Check=[
"/logs/readme.md"
,
"/logs/readme.md"
,
],
],
],
],
/*
"/apps/apps"=>[],
"/apps/apps/inventar"=>[
"filesReadable" => [
"/apps/apps/inventar/config/objects.php",
],
"filesWritable" => [
"/apps/apps/inventar/data/app_inventar.sqlite3"
],
"httpDeny" => [
"/apps/apps/inventar/data/app_inventar.sqlite3"
],
],
"/apps/apps/net-logbook"=>[
"filesReadable" => [
"/apps/apps/net-logbook/config/objects.php",
],
"filesWritable" => [
"/apps/apps/net-logbook/data/app_net-logbook.sqlite3"
],
"httpDeny" => [
"/apps/apps/net-logbook/data/app_net-logbook.sqlite3"
],
],
"/ldaptools"=>[
"filesReadable" => [
"/ldaptools/classes/backend.class.config.php",
],
"filesWritable" => [],
"httpDeny" => [],
],
*/
];
];
foreach
(
$aDirs2Check
as
$sMySubdir
=>
$aItems
)
{
foreach
(
$aDirs2Check
as
$sMySubdir
=>
$aItems
)
{
...
@@ -209,6 +177,22 @@ foreach($aDirs2Check as $sMySubdir => $aItems) {
...
@@ -209,6 +177,22 @@ foreach($aDirs2Check as $sMySubdir => $aItems) {
],
],
]);
]);
}
}
foreach
(
$aItems
[
'httpLogin'
]
??
[]
as
$sUrl
)
{
$sMyUrl
=
"
$sSelfUrl$sUrl
"
;
$oMonitor
->
addCheck
([
"name"
=>
"Deny http on
$sUrl
"
,
"description"
=>
"Deny
$sMyUrl
"
,
"parent"
=>
$sFolderCheckName
,
"check"
=>
[
"function"
=>
"HttpContent"
,
"params"
=>
[
"headeronly"
=>
true
,
"url"
=>
$sMyUrl
,
"status"
=>
401
],
],
]);
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment