mirror of
https://github.com/grafana/grafana.git
synced 2024-11-22 08:56:43 -06:00
Small update to grafana.ini describe server options
This commit is contained in:
parent
7f5f6763ea
commit
83d798dbad
@ -2,12 +2,18 @@ app_name = Grafana
|
||||
app_mode = production
|
||||
|
||||
[server]
|
||||
; protocol (http or https)
|
||||
protocol = http
|
||||
domain = localhost
|
||||
root_url = %(protocol)s://%(domain)s:%(http_port)s/
|
||||
; the ip address to bind to, empty will bind to all interfaces
|
||||
http_addr =
|
||||
; the http port to use
|
||||
http_port = 3000
|
||||
; The public facing domain name used to access grafana from a browser
|
||||
domain = localhost
|
||||
; the full public facing url
|
||||
root_url = %(protocol)s://%(domain)s:%(http_port)s/
|
||||
router_logging = false
|
||||
; the path relative to the binary where the static (html/js/css) files are placed
|
||||
static_root_path = public
|
||||
enable_gzip = false
|
||||
|
||||
|
@ -204,11 +204,6 @@ func NewConfigContext(config string) {
|
||||
HttpAddr = server.Key("http_addr").MustString("0.0.0.0")
|
||||
HttpPort = server.Key("http_port").MustString("3000")
|
||||
|
||||
port := os.Getenv("PORT")
|
||||
if port != "" {
|
||||
HttpPort = port
|
||||
}
|
||||
|
||||
StaticRootPath = server.Key("static_root_path").MustString(path.Join(WorkDir, "webapp"))
|
||||
RouterLogging = server.Key("router_logging").MustBool(false)
|
||||
EnableGzip = server.Key("enable_gzip").MustBool(false)
|
||||
|
Loading…
Reference in New Issue
Block a user