reorg
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
{ pkgs, config, ... }:
|
||||
let
|
||||
lokiPort = config.services.loki.configuration.server.http_listen_port;
|
||||
in
|
||||
{
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
config.services.loki.configuration.server.http_listen_port
|
||||
];
|
||||
networking.firewall.allowedTCPPorts = [ lokiPort ];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
(pkgs.writeShellScriptBin "loki-check" ''
|
||||
curl http://localhost:${config.services.loki.configuration.server.http_listen_port}/ready
|
||||
curl http://localhost:${builtins.toString lokiPort}/ready
|
||||
'')
|
||||
(pkgs.writeShellScriptBin "loki-logs" "journalctl -b -u loki.service -n 10")
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user