This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Description
The URL scheme used for generating an HTML link is currently hardcoded to http (see
|
// MakeLink creates a HTML Link based on Bosun's configured Hostname |
|
func (sc *SystemConf) MakeLink(path string, v *url.Values) string { |
|
u := url.URL{ |
|
Scheme: "http", |
|
Host: sc.Hostname, |
|
Path: path, |
|
RawQuery: v.Encode(), |
|
} |
|
return u.String() |
|
} |
), but there are cases where it is desirable to set the scheme to
https and have URLs generated accordingly.
One obvious solution would be to add a Scheme configuration option. Any thoughts on this?
CC @dimamedvedev