Functional port of Grafana

Hello,
could you tell me what would be the consequences of a change from the http protocol to https and the port from 3000 to 80 in the grafana.ini file :

#################################### Server ####################################

[server]

# Protocol (http, https, socket)

;protocol = https

# The http port to use

;http_port = 80

how will the behavior of the Grafana application be affected ?

Thanks for your help.

Michel Poulet.

There are not many details here so I don’t know which OS you are using. Usually port 80 is already taken by something else but if it is free then it should be fine. For https, then you will need a TLS certificate and need to fill in the cert_file and cert_key fields with paths to those files in the server section of the config.

Example where my cert file is selfsignedcert.pem and cert key file is selfsignedkey.key:

[server]
# Protocol (http, https, socket)
protocol = https
cert_file = /home/daniel/selfsignedcert.pem
cert_key = /home/daniel/selfsignedkey.key

One thing to be aware of - a semicolon at the start of the line in ini files comments out the line so:

is commented out and will have no effect.

1 Like