From 5ccbde5de480e07f0ebd48c8437bf3dd0b51ad8d Mon Sep 17 00:00:00 2001 From: 0xTux <0xtux@pm.me> Date: Tue, 30 Jul 2024 06:14:55 +0530 Subject: [PATCH] add promtail to nginx vhost --- modules/nixos/monitoring/promtail.nix | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/modules/nixos/monitoring/promtail.nix b/modules/nixos/monitoring/promtail.nix index ab59817..3169837 100644 --- a/modules/nixos/monitoring/promtail.nix +++ b/modules/nixos/monitoring/promtail.nix @@ -1,4 +1,4 @@ -{...}: { +{lib, ...}: { services = { promtail = { enable = true; @@ -36,5 +36,20 @@ ]; }; }; + + nginx = { + enable = lib.mkForce true; + virtualHosts = { + "promtail.tux.rs" = { + forceSSL = true; + enableACME = true; + locations = { + "/" = { + proxyPass = "http://localhost:3000"; + }; + }; + }; + }; + }; }; }