Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Ci Pkg
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
Ci Pkg
Merge requests
!6
update cert check validation
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
update cert check validation
update-appmonitor
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Hahn Axel (hahn)
requested to merge
update-appmonitor
into
master
3 months ago
Overview
0
Commits
1
Pipelines
0
Changes
1
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
0e71cd53
1 commit,
3 months ago
1 file
+
13
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
public_html/appmonitor/plugins/checks/cert.php
+
13
−
1
View file @ 0e71cd53
Edit in single-file editor
Open in Web IDE
Show full file
@@ -57,7 +57,7 @@ class checkCert extends appmonitorcheck
'url'
=>
[
'type'
=>
'string'
,
'required'
=>
true
,
'description'
=>
'Url to check https://[server}[:{port}] or ssl://[server}[:{port}]'
,
'description'
=>
'Url to check https://[server}[:{port}] or ssl://[server}[:{port}]
; autodetected on webserver with php but required on cli
'
,
'default'
=>
null
,
'regex'
=>
'/^(https|ssl):\/\/[^\s]+/'
,
'example'
=>
''
,
@@ -86,6 +86,18 @@ class checkCert extends appmonitorcheck
],
];
/**
* Override explain()
* If https is used, url is not required because it can be autodetected from $_SERVER
*/
public
function
explain
():
array
{
if
(
$_SERVER
[
'HTTPS'
]
??
false
&&
$_SERVER
[
'SERVER_NAME'
]
??
false
){
$this
->
_aDoc
[
'parameters'
][
'url'
][
'required'
]
=
false
;
}
return
$this
->
_aDoc
;
}
/**
* Get default group of this check
* @return string
Loading