grafana: gzip itself
This commit is contained in:
parent
5f39a1008a
commit
5a7a32f1e0
@ -127,7 +127,6 @@
|
|||||||
acmeCA = null;
|
acmeCA = null;
|
||||||
virtualHosts."grafana.jakstys.lt" = {
|
virtualHosts."grafana.jakstys.lt" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
encode gzip
|
|
||||||
reverse_proxy 127.0.0.1:3000
|
reverse_proxy 127.0.0.1:3000
|
||||||
tls {$CREDENTIALS_DIRECTORY}/grafana.jakstys.lt-cert.pem {$CREDENTIALS_DIRECTORY}/grafana.jakstys.lt-key.pem
|
tls {$CREDENTIALS_DIRECTORY}/grafana.jakstys.lt-cert.pem {$CREDENTIALS_DIRECTORY}/grafana.jakstys.lt-key.pem
|
||||||
'';
|
'';
|
||||||
@ -152,9 +151,9 @@
|
|||||||
};
|
};
|
||||||
settings = {
|
settings = {
|
||||||
server = {
|
server = {
|
||||||
# TODO tailscale service?
|
domain = "grafana.jakstys.lt";
|
||||||
domain = "${config.networking.hostName}.${config.networking.domain}";
|
root_url = "https://grafana.jakstys.lt";
|
||||||
# NB: this was tailscale0 before, now controlled via firewall.
|
enable_gzip = true;
|
||||||
http_addr = "0.0.0.0";
|
http_addr = "0.0.0.0";
|
||||||
http_port = myData.ports.grafana;
|
http_port = myData.ports.grafana;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user