generated from john/nix-docker
tweaks
This commit is contained in:
12
loki.nix
12
loki.nix
@@ -1,9 +1,13 @@
|
||||
{ pkgs, userName, ... }:
|
||||
let
|
||||
lokiPort = 3100;
|
||||
in
|
||||
{
|
||||
networking.firewall.allowedTCPPorts = [ 3100 ];
|
||||
networking.firewall.allowedTCPPorts = [ lokiPort ];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
(pkgs.writeShellScriptBin "loki-check" "curl http://127.0.0.1:3100/ready")
|
||||
(pkgs.writeShellScriptBin "loki-check" "curl http://localhost:3100/ready")
|
||||
(pkgs.writeShellScriptBin "loki-logs" "journalctl -b -u loki.service -n 25")
|
||||
];
|
||||
|
||||
services.loki = {
|
||||
@@ -11,8 +15,8 @@
|
||||
user = "${userName}";
|
||||
|
||||
configuration = {
|
||||
server.http_listen_port = 3100;
|
||||
server.grpc_listen_port = 9096;
|
||||
server.http_listen_port = lokiPort;
|
||||
# server.grpc_listen_port = 9096;
|
||||
auth_enabled = false;
|
||||
|
||||
ingester = {
|
||||
|
||||
Reference in New Issue
Block a user