[ZBXNEXT-6700] Template Gitlab by HTTP does not support HTTPS protocol Created: 2021 Jun 04  Updated: 2024 Apr 10  Resolved: 2021 Jun 14

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Templates (T)
Affects Version/s: 5.4.0
Fix Version/s: 5.4.2rc1, 6.0.0alpha1, 6.0 (plan)

Type: Change Request Priority: Minor
Reporter: Denis Vasiliev Assignee: Yulia Chukina (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Team: Team INT
Sprint: Sprint 77 (Jun 2021)
Story Points: 1

 Description   

If Gitlab works over HTTPS template is not able to fetch metrics. 

curl localhost:443/-/metrics

<html>
<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>
<body>
<center><h1>400 Bad Request</h1></center>
<center>The plain HTTP request was sent to HTTPS port</center>
<hr><center>nginx</center>
</body>
</html>

 

Proposed change:

from {$GITLAB.URL}:{$GITLAB.PORT}

to {$GITLAB.PROTOCOL}://{$GITLAB.URL}:{$GITLAB.PORT}



 Comments   
Comment by Vjaceslavs Bogdanovs [ 2021 Jun 04 ]

Have you tried setting {$GITLAB.URL} to "https://localhost" and {$GITLAB.PORT} to "443"?

Comment by Denis Vasiliev [ 2021 Jun 04 ]

Thanks, this works great.

Than, maybe, it's good idea to update default value for {$GITLAB.URL} to http://localhost  in order to make this approach obvious to everybody?

Generated at Fri Jun 19 04:08:00 EEST 2026 using Jira 10.3.18#10030018-sha1:5642e4ad348b6c2a83ebdba689d04763a2393cab.