Migrated to NixOS (Oh Happy day!!)
This commit is contained in:
@@ -35,10 +35,10 @@ in
|
||||
};
|
||||
settings = {
|
||||
server = {
|
||||
domain = serverIP; # "grafana.cyperpunk.de";
|
||||
domain = "www.cyperpunk.de"; # serverIP; # "grafana.cyperpunk.de";
|
||||
http_port = 2342;
|
||||
http_addr = "127.0.0.1";
|
||||
root_url = "http://${serverIP}/grafana/";
|
||||
http_addr = "0.0.0.0";
|
||||
root_url = "http://www.cyperpunk.de/grafana/";
|
||||
serve_from_sub_path = true;
|
||||
};
|
||||
security = {
|
||||
@@ -51,20 +51,6 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
# nginx reverse proxy
|
||||
nginx = {
|
||||
enable = true;
|
||||
virtualHosts."${serverIP}" = {
|
||||
locations."/grafana/" = {
|
||||
proxyPass = "http://127.0.0.1:${toString config.services.grafana.settings.server.http_port}";
|
||||
proxyWebsockets = true;
|
||||
extraConfig = ''
|
||||
proxy_set_header Host ${serverIP};
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# TODO: Computers should register themselves
|
||||
prometheus = {
|
||||
enable = true;
|
||||
@@ -133,9 +119,7 @@ in
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
80
|
||||
443
|
||||
# TODO: Remove
|
||||
2342
|
||||
9001
|
||||
3100
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user